Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
updated the cloudformation1 template
Browse files Browse the repository at this point in the history
  • Loading branch information
adabalar1 committed Sep 25, 2017
1 parent 16831f1 commit 41e9634
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -248,6 +248,12 @@
},
"LaunchConfig" : {
"Type" : "AWS::AutoScaling::LaunchConfiguration",
"Metadata" : {
"AWS::CloudFormation::Init" : {
"config" : {
}
}
},
"DependsOn":["InstanceRoleInstanceProfile"],
"Properties" : {
"IamInstanceProfile" : { "Ref" : "InstanceRoleInstanceProfile" },
Expand Down Expand Up @@ -321,9 +327,7 @@
{ "Fn::Join" : [ "", [ "", "" ] ] },
{ "Fn::Join" : [ "", [ "yum install -y aws-cfn-bootstrap", "" ] ] },
{ "Fn::Join" : [ "", [ "# Install the files and packages from the metadata", "" ] ] },
{ "Fn::Join" : [ "", [ "/opt/aws/bin/cfn-init -v --stack ", { "Ref" : "AWS::StackId" }, " --resource WebServerGroup --region \"$REGION\"", "" ] ] },
{ "Fn::Join" : [ "", [ "# Start up the cfn-hup daemon to listen for changes to the Web Server metadata", "" ] ] },
{ "Fn::Join" : [ "", [ "/opt/aws/bin/cfn-hup || error_exit 'Failed to start cfn-hup'", "" ] ] },
{ "Fn::Join" : [ "", [ "/opt/aws/bin/cfn-init -v --stack ", { "Ref" : "AWS::StackId" }, " --resource LaunchConfig --region \"$REGION\"", "" ] ] },
{ "Fn::Join" : [ "", [ "# Signal the status from cfn-init", "" ] ] },
{ "Fn::Join" : [ "", [ "/opt/aws/bin/cfn-signal -e $? --stack ", { "Ref" : "AWS::StackId" } ," --resource WebServerGroup --region \"$REGION\"", "" ] ] }
] ] } }
Expand Down

0 comments on commit 41e9634

Please sign in to comment.