How are everyone handling EC2 ASG Lifecycle Hooks ...
# aws
k
How are everyone handling EC2 ASG Lifecycle Hooks with SQS or SNS where you want to run a script on the instance before termination? Eg: ASG Lifecycle Hook -> SNS/SQS -> consumer in instance - github.com/buildkite/lifecycled - https://github.com/scopely/shudder - other? We were going to avoid SQS and cron AWS CLI calls but Spinnaker requires notification and role arn when it creates ASG's. It creates a unique ASG per deploy (version number suffix) and destroys old ASG. Or some variance in multiple stages.
Turns out Spinnaker only supports SNS Lifecycle Hooks so we going down that path with lifecycled. :)