Been trying to create a cloud formation template. I have been trying to use the UserData section and have reduced the template to the bones to identify what the problem is:
I am getting the error: Property validation failure: [Encountered unsupported properties in {/}: [UserData]]
This is my now totally barebones template. I must be doing something fundamentally wrong. Can someone help please?
{
"AWSTemplateFormatVersion": "2010-09-09",
"Metadata": {
"AWS::CloudFormation::Designer": {
"319ac38d-a9ea-4855-9a9a-4dc91f6ef092": {
"size": {
"width": 60,
"height": 60
},
"position": {
"x": -310,
"y": 30
},
"z": 1,
"embeds": []
}
}
},
"Resources": {
"Cloud9Template": {
"Type": "AWS::Cloud9::EnvironmentEC2",
"Properties": {
"UserData":{
"Fn::Base64" : {
"Fn::Join" : [ ",", [
"test",
"Hello World" ] ]
}
},
"AutomaticStopTimeMinutes": "45",
"InstanceType": "t2.micro",
"Name": {
"Ref": "AWS::StackName"
}
},
"Metadata": {
"AWS::CloudFormation::Designer": {
"id": "319ac38d-a9ea-4855-9a9a-4dc91f6ef092"
},
"AWS::CloudFormation::Init" : {
"sources" : {
"/home/ec2-user/environment/src" : <linktotarball>"
}
}
}
}
}
}
Thank you!