Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1008 Bytes

README.md

File metadata and controls

44 lines (27 loc) · 1008 Bytes

Edit EC2 Security Group Rules

This script edits EC2 security group rules using the AWS SDK for JavaScript v3.

Prerequisites

  • AWS account with permissions to modify security groups
  • Node.js 12+

Setup

  1. Clone this repository
  2. Run npm install or yarn to install dependencies
  3. Create a .env file with your credentials:
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
  1. Update updateSecurityGroupRule/securityGroups.js with the security groups and rules to modify

Usage

Run the script with:

yarn update-security-groups-rules

The script will modify the rules for the security groups specified in updateSecurityGroupRule/securityGroups.js.

Logs will show progress and any errors.

License

This project is under the MIT License. See the LICENSE file for details.

Contact

If you have any questions or suggestions open an issue in this repository.

I hope this README helps you use the script! Let me know if you need any part explained further.