h-imaoka / set-sg-desc

set security group descriptions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set-sg-desc (set security group descriptions)

What's this?

https://docs.aws.amazon.com/cli/latest/reference/ec2/update-security-group-rule-descriptions-ingress.html

  • input: text file (cidr & description)
  • output: SG-IPPermision's Descriptions
  • how?: simply, this tool update all descriptions, that same input-file's ciders.

This tool DO NOT modify SecurityGroup itself. So, you should create sg via any other tools (piculet / terraform)

input file

"10.10.10.10/32"  #test site A
"11.10.10.10/32"  #test site B

dry-run & apply

dry-run docker-compose run --rm set-sg-desc.py --dry-run < sample-list

apply docker-compose run --rm set-sg-desc.py < sample-list

docker-image

https://hub.docker.com/r/himaoka/set-sg-desc/

About

set security group descriptions


Languages

Language:Python 90.3%Language:Dockerfile 9.7%