|
|
|
@ -211,8 +211,8 @@ To successfully make an API call to AWS, you will need to configure Boto (the Py
|
|
|
|
|
|
|
|
|
|
You can test the script by itself to make sure your config is correct
|
|
|
|
|
|
|
|
|
|
cd examples/scripts
|
|
|
|
|
./ec2_external_inventory.py --list
|
|
|
|
|
cd plugins/inventory
|
|
|
|
|
./ec2.py --list
|
|
|
|
|
|
|
|
|
|
After a few moments, you should see your entire EC2 inventory across all regions in JSON.
|
|
|
|
|
|
|
|
|
@ -295,8 +295,8 @@ Both ``ec2_security_group_ids`` and ``ec2_security_group_names`` are comma-separ
|
|
|
|
|
|
|
|
|
|
To see the complete list of variables available for an instance, run the script by itself::
|
|
|
|
|
|
|
|
|
|
cd examples/scripts
|
|
|
|
|
./ec2_external_inventory.py --host ec2-12-12-12-12.compute-1.amazonaws.com
|
|
|
|
|
cd plugins/inventory
|
|
|
|
|
./ec2.py --host ec2-12-12-12-12.compute-1.amazonaws.com
|
|
|
|
|
|
|
|
|
|
Example: OpenStack Inventory Script
|
|
|
|
|
```````````````````````````````````
|
|
|
|
|