new file: content/2016-06-21-output-all-instance-identifiers-of-an-aws-vpc-to-json.rst
This commit is contained in:
parent
b137008075
commit
c0abe32b2f
1 changed files with 26 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue