https://github.com/michaelmure/asg-instance-refresh
https://github.com/michaelmure/asg-instance-refresh
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/michaelmure/asg-instance-refresh
- Owner: MichaelMure
- Created: 2020-07-23T09:28:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-24T14:34:33.000Z (almost 5 years ago)
- Last Synced: 2024-10-12T14:18:47.714Z (7 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# asg-instance-refresh
`asg-instance-refresh` is a minimal CLI tool to trigger an [instance refresh](https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html) on a EC2 autoscaling group.
## Usage
`asg-instance-refresg `
## Flags
- `region` - The AWS region. Default to us-east-1.
- `warmup` - How long the new instances need to warm up. Default to the value for the health check grace period defined for the group.
- `minhealthy` - The minimum percentage capacity to retain during the recycling. Default to 100%.
- `wait` - Wait until the refresh is complete to return.
## NotesThis feature already exist in the AWS CLI tool but only on the V2 version which is not commonly packaged at the moment. The UX is also terrible (it reads a JSON file instead of using flags). Once those problems are resolved, this could possibly be retired.