diff --git a/aws/solutions/AmazonCloudWatchAgent/inline/ubuntu.template b/aws/solutions/AmazonCloudWatchAgent/inline/ubuntu.template index d20ad54a..9060a022 100644 --- a/aws/solutions/AmazonCloudWatchAgent/inline/ubuntu.template +++ b/aws/solutions/AmazonCloudWatchAgent/inline/ubuntu.template @@ -134,9 +134,9 @@ Resources: dpkg -i /tmp/amazon-cloudwatch-agent.deb apt-get update -y apt-get install -y python-pip - easy_install --script-dir /opt/aws/bin https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz - /opt/aws/bin/cfn-init -v --stack ${AWS::StackId} --resource EC2Instance --region ${AWS::Region} --configsets default - /opt/aws/bin/cfn-signal -e $? --stack ${AWS::StackId} --resource EC2Instance --region ${AWS::Region} + pip install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz + /usr/local/bin/cfn-init -v --stack ${AWS::StackId} --resource EC2Instance --region ${AWS::Region} --configsets default + /usr/local/bin/cfn-signal -e $? --stack ${AWS::StackId} --resource EC2Instance --region ${AWS::Region} CreationPolicy: ResourceSignal: Count: 1