aws-scripting-guy / cform-VSCode

CloudFormation extension for Visual Studio Code
86 stars 36 forks source link

YAML for ec2-instance Properties UserData generates an error when launching stack #15

Closed charles545587 closed 5 years ago

charles545587 commented 5 years ago

The template for an ec2-instance produces a property of Userdata.

This generates an error when trying to launch the stack. This is due to the official documentation for this property in YAML being case sensitive camel case. This should be UserData not Userdata.

This was tested by manually amending the template to UserData and the stack launched without error.

I confirmed the correct syntax using the Official documentation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html

darko-mesaros commented 5 years ago

I can confirm the same issue.

charles545587 commented 5 years ago

In the end I have downloaded as a zip and manually installed so that I can correct errors and update the resources as I go. Instructions on how to do this are on the VS Code website.

aws-scripting-guy commented 5 years ago

Should be resolved now.