{"id":22111685,"url":"https://github.com/phx/awsdynamicsecuritygroupupdate","last_synced_at":"2026-05-06T20:36:51.446Z","repository":{"id":121578123,"uuid":"284788607","full_name":"phx/AWSdynamicSecurityGroupUpdate","owner":"phx","description":"Update all AWS security groups that include your current /24 range to configure a new ALLOW rule for your current public IP address to a specific protocol and port.","archived":false,"fork":false,"pushed_at":"2020-08-03T19:32:06.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T04:41:10.415Z","etag":null,"topics":["aws","aws-cli","aws-cli-utilities","aws-ec2","bash"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-03T19:26:52.000Z","updated_at":"2020-08-03T19:32:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"50aa158a-dee5-42dd-b45f-35bb270a039c","html_url":"https://github.com/phx/AWSdynamicSecurityGroupUpdate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phx/AWSdynamicSecurityGroupUpdate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2FAWSdynamicSecurityGroupUpdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2FAWSdynamicSecurityGroupUpdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2FAWSdynamicSecurityGroupUpdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2FAWSdynamicSecurityGroupUpdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phx","download_url":"https://codeload.github.com/phx/AWSdynamicSecurityGroupUpdate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2FAWSdynamicSecurityGroupUpdate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32711624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T19:35:05.142Z","status":"ssl_error","status_checked_at":"2026-05-06T19:35:03.996Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-cli","aws-cli-utilities","aws-ec2","bash"],"created_at":"2024-12-01T10:50:33.838Z","updated_at":"2026-05-06T20:36:51.400Z","avatar_url":"https://github.com/phx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWSdynamicSecurityGroupUpdate\n\nThis is a simple script that I created in order to help me update AWS Security Group rules for SSH to remote instances from my dynamic public IP.\n\nYou can change the protocol and port by passing them as script arguments `$1` and `$2`, respectively.\n\nYou can also undo the operation by passing script argument `undo` as `$1`, alternatively with `$2` and `$3` as the protocol and port.\n\nYou can specify the names of security groups in `groups.txt`, which always takes precedence.\n\nIf `groups.txt` is not found, the groups affected will be the ones matching the /24 of your current IP range.\n\n## Example\n\nBy running with default options, if your public IP is 1.2.3.4, the script will gather all the security group names with a TCP port 22 ALLOW rule from 1.2.3.0/24 and try to add an additional rule for 1.2.3.4.\n\nYes, this means that at some point you will have to go back into the console and clean up old entries, because I didn't bother adding the additional logic of including that into the script.\n\nFeel free to fork or submit pull requests if you want to contribute and make this script better.\n\n### Caveats\n\nIf not running in default VPC, I believe you will have to modify the aws command line to add the name of the VPC.\n\nBad practice, I know, but initially this script was just for me to use with my personal instances before I tweaked it for wider use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fawsdynamicsecuritygroupupdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphx%2Fawsdynamicsecuritygroupupdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fawsdynamicsecuritygroupupdate/lists"}