aem-aws-stack-builder
aem-aws-stack-builder copied to clipboard
Implement Auto Scaling Group lifecycle hooks to reduce health check grace period
Is your feature request related to a problem? Please describe. The Lifecycle hook feature provides the ability to signalise the Auto Scaling Group(ASG) when the EC2 instance is actually ready to use.
Right now, we are configuring the health check grace period with an expected time in seconds, when the EC2 instance might be ready. Once the period timer is exceeded the instance will be monitored by the ASG. It can take a shorter amount of time or longer until the ec2 instance is ready.
The lifecycle hook provides the ability to 100% signalise the ASG when the EC2 instance is ready to be monitored/managed by the ASG.
We don't have to configure an "expected" value when the EC2 instance might be ready.
Describe the solution you'd like Following the AWS documentation to implement the lifecycle hook.
- Create ASG Lifecycle Hook via CloudFormation
- Use the User-Data to execute complete-lifecycle-action
Describe alternatives you've considered using health check grace period