Skip to content

Open/Update AWS SecurityGroup to your Public IP address

Notifications You must be signed in to change notification settings

adv4000/aws-letme-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Update EC2 SecurityGroup to your Public IP address

If your Public IP frequently changes and you need to keep your SecurityGroup open ONLY to your Public IP, just execute this script again, it will update SecurityGroup Rule with a new Public IP. Can be used by multiply IAM users.

For example Developer need access to Jenkins Server and his Public IP always changes.

Update Script with the following:

SG_AWS_REGION="us-west-2"                  # Region where  SecurityGroup exist
SG_AWS_ACCOUNT_ID="827611452653"           # Account where SecurityGroup exist
SG_ID_TO_UPDATE="sg-0739261d2996c0005"     # SecurityGroup ID to Update
SG_FR_PORT=8080                            # Open SecurityGriup FROM port number
SG_TO_PORT=8080                            # Open SecurityGriup TO   port number


This is how SecurityGroup rules Managed by Script looks like:

Copyleft (c) by Denis Astahov ADV-IT

About

Open/Update AWS SecurityGroup to your Public IP address

Topics

Resources

Stars

Watchers

Forks

Languages