Skip to content

Instantly share code, notes, and snippets.

@dougtoppin
Created December 11, 2013 01:28
Show Gist options
  • Save dougtoppin/7903596 to your computer and use it in GitHub Desktop.
Save dougtoppin/7903596 to your computer and use it in GitHub Desktop.
Capturing AWS Configuration Information Using the AWS cli
Over time I've developed a lot of AWS configuration informtion and I recently realized that I was not capturing it anywhere. I've made mods to my security groups once or twice and then did not have a record of what they were before the mod so I've been looking around for a way to get a record of it. What I've been able to come up with is to use the aws cli (command line interface) and do various describe commands to get it.
To find the commands you can do this:
aws ec2 help | grep describe-
You should see something like the following. It might not be the best way to do it but it's what I've come up with so far. You can do these in a script, save the output to a file and keep that in your cm system.
o describe-account-attributes
o describe-addresses
o describe-availability-zones
o describe-bundle-tasks
o describe-conversion-tasks
o describe-customer-gateways
o describe-dhcp-options
o describe-export-tasks
o describe-image-attribute
o describe-images
o describe-instance-attribute
o describe-instance-status
o describe-instances
o describe-internet-gateways
o describe-key-pairs
o describe-licenses
o describe-network-acls
o describe-network-interface-attribute
o describe-network-interfaces
o describe-placement-groups
o describe-regions
o describe-reserved-instances
o describe-reserved-instances-listings
o describe-reserved-instances-modifications
o describe-reserved-instances-offerings
o describe-route-tables
o describe-security-groups
o describe-snapshot-attribute
o describe-snapshots
o describe-spot-datafeed-subscription
o describe-spot-instance-requests
o describe-spot-price-history
o describe-subnets
o describe-tags
o describe-volume-attribute
o describe-volume-status
o describe-volumes
o describe-vpc-attribute
o describe-vpcs
o describe-vpn-connections
o describe-vpn-gateways
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment