Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 714 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 714 Bytes

AWS boto3 scripts

Messing around learning about boto3.

Create an instance

Copy the sample conf file and then replace the access and secret key. Populate your security group and SSH key name.

python create_instance.py name_of_my_new_instance

Set tags of an instance from a config file

Edit your desired tags in conf/tags.config and then run via

python apply_tags_from_config.py <instance_id>

Check all instances in a region for certain tags

Your region will be hardcoded in your conf/aws.config file.

python check_instance_tags.py Name

[shell] List instances by state, with useful informtation

Region is hardcoded in the script

bash list_instances.sh running