python using botot3 - for ec2 instances to begin with
Demo project using botot3 to interrogate info on ec2 instances
pip3 install pipenv
pipenv install boto3
pipenv install -d ipython
analyser.py use the analyer profile created via the AWS CLI like:
aws configure --profile analyser
Creds obtained from IAM role of analyser also
From the checkout directory
pipenv run python boto3/ec2.py <command> --project=<PROJECT>
for class
pipenv run python boto3/fn_ec2.py <command> --project=<PROJECT>
for functions
pipenv run python boto3/fn_ec2.py <command>
for s3
command is list, start, stop for ec2 or
command is list-buckets, list-bucket-objects [OPTIONS] BUCKET for s3
project is optional
name is optional
e.g.
pipenv run python boto3/fn_ec2.py stop --project=Python
pipenv run python boto3/fn_ec2.py list
pipenv run python boto3/fn_ec2.py --help