From 2f233edc75272860a23705e2d8ca02f9340880db Mon Sep 17 00:00:00 2001 From: csquared Date: Wed, 14 Oct 2015 17:04:45 -0700 Subject: [PATCH] install cfn via aws-cfn-bootstrap --- api/dist/kernel.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/dist/kernel.json b/api/dist/kernel.json index 255ab23485..53bf3acaa5 100644 --- a/api/dist/kernel.json +++ b/api/dist/kernel.json @@ -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", @@ -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" ] ] } }