Skip to content

Instantly share code, notes, and snippets.

@kenoir
Created March 31, 2016 15:17
Show Gist options
  • Save kenoir/bed1a6ee7749137959fe2d372edeba86 to your computer and use it in GitHub Desktop.
Save kenoir/bed1a6ee7749137959fe2d372edeba86 to your computer and use it in GitHub Desktop.
AWS CLI Infra list incantations
aws cloudformation list-stacks | jq ".StackSummaries[].StackId" -r | grep "PROD"
aws ec2 describe-instances --filters Name=tag:Stage,Values=PROD | jq ".Reservations[].Instances[].InstanceId" -r
aws elb describe-load-balancers | jq ".LoadBalancerDescriptions[].LoadBalancerName" -r
aws autoscaling describe-auto-scaling-groups | jq ".AutoScalingGroups[].AutoScalingGroupName" -r | grep "PROD"
aws s3 ls | grep "prod" | awk '{print $3}'
aws ec2 describe-vpcs | jq ".Vpcs[].VpcId" -r
aws dynamodb list-tables | jq ".TableNames[]" -r | grep "PROD"
aws sqs list-queues | jq ".QueueUrls[]" -r | grep "PROD"
aws sns list-topics | jq ".Topics[].TopicArn" -r | grep "PROD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment