Various AWS automation scripts. Example - Taking snapshots of EBS
Snapshots.py
Takes snapshot of the AWS EBS Volume.Keeps 5 snapshots reserved and deletes the oldest one.
#Parameters to be given --
"--volId", help="Volume Id of the volume to take backup of"
"--snap_name", help="Set name of the snapshot"
"--snap_desc", help="Set description of the snapshot"
Network_acl_block.py
Blocks the IP address provided as the argument, from VPC's Network-acl Inbound Rules.It also takes care of the rule number protocols to be followed.
#Parameters to be given --
"--ip", help="IP to block"
"--region_name", help="Region name of your EC2 instance"
"--nacl_id", help="Network ACL id"