Skip to content

Commit

Permalink
install cfn via aws-cfn-bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
csquared committed Oct 15, 2015
1 parent 2ebbcb1 commit 2f233ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/dist/kernel.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@
"#!/bin/bash",
"fallocate -l 5G /swapfile && chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile",
"yum -y update",
"yum -y install aws-cfn-bootstrap",
{ "Fn::Join": [ "", [ "echo ECS_CLUSTER=", { "Ref": "Cluster" }, " >> /etc/ecs/ecs.config" ] ] },
"echo ECS_ENGINE_AUTH_TYPE=docker >> /etc/ecs/ecs.config",
{ "Fn::If": [ "BlankCertificate",
Expand All @@ -508,8 +509,8 @@
"mkdir -p /etc/convox",
{ "Fn::Join": [ "", [ "echo \"", { "Ref": "AWS::Region" }, "\" > /etc/convox/region" ] ] },
"curl -s http://convox.s3.amazonaws.com/agent/0.3/convox.conf > /etc/init/convox.conf",
{ "Fn::Join": [ " ", [ "cfn-init", "-s", { "Ref": "AWS::StackName" }, "-r", "Instances", "--region", {"Ref":"AWS::Region"} ] ] },
{ "Fn::Join": [ " ", [ "cfn-signal", "-s", "--stack", { "Ref": "AWS::StackName" }, "--resource", "Instances", "--region", {"Ref":"AWS::Region"} ] ] },
{ "Fn::Join": [ " ", [ "/opt/aws/bin/cfn-init", "-s", { "Ref": "AWS::StackName" }, "-r", "Instances", "--region", {"Ref":"AWS::Region"} ] ] },
{ "Fn::Join": [ " ", [ "/opt/aws/bin/cfn-signal", "-s", "--stack", { "Ref": "AWS::StackName" }, "--resource", "Instances", "--region", {"Ref":"AWS::Region"} ] ] },
"start convox"
] ] }
}
Expand Down

0 comments on commit 2f233ed

Please sign in to comment.