Random   •   Archives   •   RSS   •   About   •   Contact

Output all instance identifiers of an AWS VPC to JSON

At work today I needed an easy way to collect private IP addresses of every instance in one of our production VPCs.

I ended up adding a tool to http://botoform.com to perform this task.

bf --profile <aws_profile> dump <vpc_name_tag> instances --output-format json

For example:

bf --profile customer3 dump prd instances --output-format json > ~/customer3-prd-instances.json

Checkout the Botoform Quickstart for installation instructions.



© Russell Ballestrini.