A Python application that updates your security group based off of your current IP address. Currently being expanded to more than just AWS provider.
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.
 
prasket ae9ce0b390 Merge pull request 'updated to use Pipfile for pipenv, also to Python3. Will test it still works tomorrow.' (#1) from python3-upgrade into main 5 days ago
.gitignore updated to use Pipfile for pipenv, also to Python3. Will test it still works tomorrow. 5 days ago
LICENSE Initial commit 3 years ago
Pipfile updated to use Pipfile for pipenv, also to Python3. Will test it still works tomorrow. 5 days ago
Pipfile.lock updated to use Pipfile for pipenv, also to Python3. Will test it still works tomorrow. 5 days ago
README.md updated README to have current info about Python version and pipenv dev usage 5 days ago
aws-sg-ip-updater.py updated to use Pipfile for pipenv, also to Python3. Will test it still works tomorrow. 5 days ago

README.md

AWS-SG-IP-Updater

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

Prerequisites

  • Python 3.8
  • pipenv is used for environment management.
  • AWS Profile configured with a default profile specified has necessary permissions to update an EC2 Security Group (you can have this setup without having AWSCLI installed see HERE

How do I get set up?

  • Run pipenv install to install the python requirements listed in Pipefile/Pipfile.lock in a new virtual environment. Make sure to install pipenv from above link before this.

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
  • add Digital Ocean as a provider

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.