- 最新
- 投票最多
- 评论最多
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è
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 个月前