The AWS Security Group IP Updater is a command-line utility written in Node.js for dynamically updating the IP addresses in your AWS Security Groups. This utility is particularly useful for developers who work in dynamic IP environments and need to frequently update their security groups to allow access to AWS resources.
- Automatically fetches your external IP address
- Updates specified AWS Security Groups to replace old IP with the current one
- Supports multi-factor authentication (MFA) for enhanced security
- Provides a progress bar to indicate the status of the updates
- Logs details for auditing and troubleshooting
- Node.js v14.x or higher
-
Clone the Repository
git clone https://github.com/your-username/aws-security-group-ip-updater.git
-
Navigate to the Project Directory
cd aws-security-group-ip-updater/src
-
Install Dependencies
npm install
-
Configuration
- Rename the
config.json.dist
file toconfig.json
. - Fill in your AWS account details and Security Group IDs that you want to update in
config.json
.
- Rename the
-
Basic Usage
node index.mjs
-
With MFA Token
node index.mjs 123456
Here,
123456
is your MFA token.
- If you encounter any errors related to ES modules, make sure your Node.js version is v14.x or higher.
Feel free to open issues or submit pull requests. Your contributions are welcome!
MIT License. See LICENSE for more information.