Created
March 31, 2016 15:17
-
-
Save kenoir/bed1a6ee7749137959fe2d372edeba86 to your computer and use it in GitHub Desktop.
AWS CLI Infra list incantations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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