Doing an EC2 Inventory the funny wayThis script can help you to pull out all EC2 instances with all their properties.
Use the outputed csv as a jumpstart for inventory or documentation.
How does it work?When you log in to your AWS account all information regarding your instances is loaded into a table on the clientside, some of them are displayed - depending on your configuration.
Amazon has right now no export available to process EC2 properties (for example in a spreadsheet). Simple copy&paste from webpage to a spreadsheet has failed for me.
Finally I push the data with a csv converter as new "download" (line 14)
Find the full snippet here: https://gist.github.com/01infinity/5993641
- Navigate the region you want to extract, e.g. https://console.aws.amazon.com/ec2/v2/home?region=eu-west-1, wait for the main table to be loaded
- CSV will be "downloaded" immediately, containing all columns (very useful to have them really all, usually only a few one will be configured to be displayed in the view)