aws-reboot is a Node.js npm package that simplifies the process of rebooting EC2 instances associated with ECS container instances in a specified ECS cluster.
Install the package globally using npm:
npm install -g aws-reboot
Run the package using the following command:
aws-reboot <ecsClusterName> [instanceChunk]
- : The name of your ECS cluster.
- [instanceChunk]: (Optional) Number of EC2 instances to reboot in each chunk. Default is 5.
aws-reboot my-ecs-cluster 10
This command reboots EC2 instances associated with the specified ECS cluster (my-ecs-cluster) in chunks of 10 instances at a time.
The AWS region is determined based on the AWS CLI configuration or the AWS_REGION environment variable. If not set, the default region is 'us-east-1'.
Contributions are welcome! Please read the Contribution Guidelines before making a contribution.
This project is licensed under the MIT License.