Lenny Hartmann d6fe2eec96 Sqs endpoint (#221)
* test

* undo test

* Added aws SQS endpoint

* Added aws vendor

* Bug fixes

* enabled NOCOPY in build.sh
2017-10-05 14:08:03 -07:00
..
2017-10-05 14:08:03 -07:00
2017-10-05 14:08:03 -07:00

Example Fetch By region

This is an example using the AWS SDK for Go to list ec2 instances instance state By different region . By default it fetch all running and stopped instance

Usage

# To fetch the stopped instance of all region use below:
./filter_ec2_by_region --state running --state stopped

# To fetch the stopped and running instance  for  region us-west-1 and eu-west-1 use below:
./filter_ec2_by_region --state running --state stopped --region us-west-1 --region=eu-west-1

Sample Output

Fetching instace details  for region: ap-south-1 with criteria:  [running][stopped]**
 printing instance details.....
instance id i-************
current State stopped
done for region ap-south-1 ****



Fetching instace details  for region: eu-west-2 with criteria:  [running][stopped]**
 There is no instance for the for region eu-west-2 with the matching Criteria: [running][stopped]
done for region eu-west-2 ****