我正在使用以下模板使用 cloudformation 创建作业定义。当我上传这个模板时,我收到了错误:
“模板验证错误:无效的模板属性或属性 [JobDefinition]”
我错过了模板中的某些内容吗?
{
"JobDefinition": {
"Type": "AWS::Batch::JobDefinition",
"Properties": {
"Type": "container",
"JobDefinitionName" : "filedownload",
"ContainerProperties": {
"Image": "abc",
"Vcpus": 4,
"Memory": 2000,
"JobRoleArn": "arn:aws:iam::********:role/batchjobRole",
"ReadonlyRootFilesystem": true,
"Privileged": true
},
"RetryStrategy" : {"attempts": 1}
}
}
}