Resource scheduling and energy consumption is an important issue of Cloud Computing. The intention of optimization for scheduling resources is an important issue to be considered in scheduling of different resources among heterogeneous users. The resources are placed in a distributed location in cloud and the major task is to distribute the resources effectively such that the processing time and energy is reduced. In this paper, Ant Colony optimization technique is proposed to optimize the resources in an efficient manner. ACO is used to choose one among the different alternative paths to determine the processing order of each resource. The search space is reduced to provide a better solution. Travelling Salesman Problem(TSP) is the application that is used here to find the shortest path to the destination. This reduces the delay in allocating resources to the user by providing a global search technique. The energy conservation which is the main objective of Green Computing, can also be achieved using this technique