new file: content/2016-06-21-output-all-instance-identifiers-of-an-aws-vpc-to-json.rst

This commit is contained in:
russellballestrini 2016-06-21 10:33:27 -04:00
parent b137008075
commit c0abe32b2f

View file

@ -0,0 +1,26 @@
Output all instance identifiers of an AWS VPC to JSON
=====================================================
:author: Russell Ballestrini
:slug: output-all-instance-identifiers-of-an-aws-vpc-to-json
:date: 2016-06-21 10:25
:tags: Code, DevOps
:status: published
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.
.. code-block:: bash
bf --profile <aws_profile> dump <vpc_name_tag> instances --output-format json
For example:
.. code-block:: bash
bf --profile customer3 dump prd instances --output-format json > ~/customer3-prd-instances.json
Checkout the `Botoform Quickstart <https://botoform.readthedocs.io/en/latest/guides/quickstart.html>`_
for installation instructions.