Entradas

Mostrando entradas de noviembre, 2016

python argparse reference

The cleanest example to parse options for a python program:

https://pymotw.com/2/argparse/

Getting AWS instances using certain image-id with CLI

Create a file filters.json$ aws ec2 describe-instances --filters file://filters.json The filters.json file looks like this:

[   {     "Name": "image-id",     "Values": ["ami-dc6aa9b1"]   } ]