AWS - rc.local is not run when /opt/aws/bin/cfn-init is present

Published: 14/11/2019
AWS - rc.local is not run when /opt/aws/bin/cfn-init is present
Source: SERVERFAULT.COM

I am launching an instance from AWS console from a pre-baked ami, by passing user-data, as "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ "#!/bin/bash -xe \n", "yum update -y aws-cfn-bootstrap\n", "yum-config-manager --enable epel\n", "/opt/aws/bin/cfn-init -v -s ", { "Ref" : "AWS::StackName" }, " -r Ec2Instance ", " --region ", { "Ref" : "AWS::Region" }, " --c

Read more
Related news
Comment
FACEBOOK