Back to Browse

How to FLAWLESSLY configure Amazon EC2 Lifecycle Hooks

5.8K views
Mar 23, 2020
19:22

User data script used in this video : ----------------------------------------------------------- #!/bin/bash yum install httpd -y && \ service httpd start && \ INSTANCE_ID="`wget -q -O - http://instance-data/latest/meta-data/instance-id`" && \ aws autoscaling complete-lifecycle-action --lifecycle-action-result CONTINUE --instance-id $INSTANCE_ID --lifecycle-hook-name myFirstHook --auto-scaling-group-name myASG --region eu-west-1 || \ aws autoscaling complete-lifecycle-action --lifecycle-action-result ABANDON --instance-id $INSTANCE_ID --lifecycle-hook-name myFirstHook --auto-scaling-group-name myASG --region eu-west-1 -----------------------------------------------------------

Download

0 formats

No download links available.

How to FLAWLESSLY configure Amazon EC2 Lifecycle Hooks | NatokHD