spec/kumogata_convert_spec.rb in kumogata-0.1.7 vs spec/kumogata_convert_spec.rb in kumogata-0.1.8

- old
+ new

@@ -111,11 +111,13 @@ InstanceType "t1.micro" UserData do Fn__Base64 _join(<<-EOS) #!/bin/bash + echo START | logger /opt/aws/bin/cfn-init -s <%= Ref "AWS::StackName" %> -r myEC2Instance --region <%= Ref "AWS::Region" %> + echo END | logger EOS end end Metadata do @@ -169,17 +171,21 @@ "UserData": { "Fn::Base64": { "Fn::Join": [ "", [ - "#!/bin/bash\n/opt/aws/bin/cfn-init -s ", + "#!/bin/bash\n", + "echo START | logger\n", + "/opt/aws/bin/cfn-init -s ", { "Ref": "AWS::StackName" }, " -r myEC2Instance --region ", { "Ref": "AWS::Region" }, + "\n", + "echo END | logger", "\n" ] ] } }