Skip to content

Instantly share code, notes, and snippets.

@kevinkarwaski
Last active April 17, 2016 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinkarwaski/d0ec1e2f8cd06b6bf768e223ba26f85b to your computer and use it in GitHub Desktop.
Save kevinkarwaski/d0ec1e2f8cd06b6bf768e223ba26f85b to your computer and use it in GitHub Desktop.
"myLifecycleHook": {
"Type": "AWS::AutoScaling::LifecycleHook",
"Properties": {
"AutoScalingGroupName": { "Ref": "myAutoScalingGroup" },
"HeartbeatTimeout": 300,
"LifecycleTransition": "autoscaling:EC2_INSTANCE_TERMINATING",
"NotificationMetadata": { "Ref": "StackName" },
"NotificationTargetARN": { "Ref": "lifecycleHookTopic" },
"RoleARN": { "Fn::GetAtt": [ "lifecycleHookRole", "Arn" ] }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment