- Newest
- Most votes
- Most comments
Hello, something changed in AWS batch since my previous post.
Today I retried to create my stack with the LaunchTemplate inside of the AWS::Batch::ComputeEnvironment. This time I got an error message referring to the raw:
"launchTemplate": {"LaunchTemplateId" : {"Ref": "mwmLaunchTemplate"}},
So I understood that there was a case error: I should have written "LaunchTemplate": (with initial uppercase).
In the meantime I have also corrected the LaunchTemplate definition which now is:
"mwmLaunchTemplate": {
"Type" : "AWS::EC2::LaunchTemplate",
"Properties" : {
"LaunchTemplateData" : {
"UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [
"MIME-Version: 1.0\n",
"Content-Type: multipart/mixed; boundary="==MYBOUNDARY=="\n",
"\n",
"--==MYBOUNDARY==\n",
"Content-Type: text/x-shellscript; charset="us-ascii"\n",
"\n",
"#!/bin/bash\n",
"echo ECS_IMAGE_PULL_BEHAVIOR=prefer-cached >> /etc/ecs/ecs.config\n",
"\n",
"--==MYBOUNDARY==--"
]]}}
}
}
},
After that the creation of my Batch Environment went well without any error.
Regars
Walter Steffè
Relevant content
- asked 3 months ago
- Accepted Answer
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago