A Python application that updates your security group based off of your current IP address.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Justin Rush 4c38fdd1e5 corrected typo in remove security group comments 2 years ago
.gitignore Initial commit 2 years ago
LICENSE Initial commit 2 years ago
README.md removed todo for remove ip, forgot to remove from code change branch. 2 years ago
aws-sg-ip-updater.py corrected typo in remove security group comments 2 years ago
requirements.txt inital push of files to public repo 2 years ago

README.md

AWS-SG-IP-Updater

A Python application that updates your security group based off of your current IP address.

Prerequisites

  • AWS CLI installed and configured with a default profile
  • AWS Profile specified has necessary permissions to update an EC2 Security Group

How do I get set up?

  • Run pip install --upgrade -r requirements.txt to install the Boto3 & Requirements libraries.

ToDo

  • add in more error handling
  • Change response to be a friendly message vs. json output
  • Add in functionality to be able to pass in which AWSCLI profile you want to use.

Details

I frequently use a VPN, especially when on public or unknown Wi-Fi. For this reason I always had to login to the AWS Console anytime I wanted to connect to my EC2 instances to update security groups due to my always changing IP. I decided to write this python script to solve this problem.