Skip to content

Instantly share code, notes, and snippets.

@toddlers
Created February 10, 2016 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toddlers/e0edcd6827ddaf5132bb to your computer and use it in GitHub Desktop.
Save toddlers/e0edcd6827ddaf5132bb to your computer and use it in GitHub Desktop.
ec2 describe_instances
ec2 = Aws::EC2::Client.new(region:'ap-southeast-1')
resp = ec2.describe_instances({filters: [{name:"tag:opsworks:stack", values:['qa-statemgmt-svc']}, {name:"tag:opsworks:layer:statemgmt_svc", values:['statemgmt_svc']}]})
resp = ec2.describe_instances({filters: [{name:"tag:opsworks:layer:statemgmt_svc", values:['statemgmt_svc']}]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment