|
|
@ -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
|
|
|
|
You can test the script by itself to make sure your config is correct
|
|
|
|
|
|
|
|
|
|
|
|
cd examples/scripts
|
|
|
|
cd plugins/inventory
|
|
|
|
./ec2_external_inventory.py --list
|
|
|
|
./ec2.py --list
|
|
|
|
|
|
|
|
|
|
|
|
After a few moments, you should see your entire EC2 inventory across all regions in JSON.
|
|
|
|
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::
|
|
|
|
To see the complete list of variables available for an instance, run the script by itself::
|
|
|
|
|
|
|
|
|
|
|
|
cd examples/scripts
|
|
|
|
cd plugins/inventory
|
|
|
|
./ec2_external_inventory.py --host ec2-12-12-12-12.compute-1.amazonaws.com
|
|
|
|
./ec2.py --host ec2-12-12-12-12.compute-1.amazonaws.com
|
|
|
|
|
|
|
|
|
|
|
|
Example: OpenStack Inventory Script
|
|
|
|
Example: OpenStack Inventory Script
|
|
|
|
```````````````````````````````````
|
|
|
|
```````````````````````````````````
|
|
|
|