Some small examples to illustrate how to interact with AWS with code.
- python3
Make sure to install AWS CLI and set up your credentials beforehand.
> aws configure
Set up the virtual environment:
> python3 -m virtalenv venv
> source ./venv/bin/activate
> (venv) make install
> python main.py -h
usage: AdaAwsExamples [-h] [-l] [-c CREATE] [-d DELETE]
A few s3 examples
options:
-h, --help show this help message and exit
-l, --list
-c CREATE, --create CREATE
create a bucket. ex: --create my-bucket-name
-d DELETE, --delete DELETE
delete a bucket. ex: --delete my-bucket-name
> python main.py -l
Bucket name: cat-pictures-logyball
Bucket name: logyball-terraform