1 Answer
- Newest
- Most votes
- Most comments
1
The names of the keys in ContainerOverrides
need to be capitalized. This is documented:
AWS Batch Jobs as EventBridge Targets - AWS Batch
Note
The names of the members of the ContainerOverrides structure must be capitalized. For example,
Command
andResourceRequirements
instead ofcommand
andresourceRequirements
.
Try this JSON:
{
"Parameters": {"name": "wilhelmshaven"},
"ContainerOverrides": {
"Command": [
"upload_to_day.py",
"-port_name",
"Ref::name"
],
"ResourceRequirements": [
{
"Type": "MEMORY",
"Value": "4096"
},
{
"Type": "VCPU",
"Value": "2"
}
]
}
}
Thanks,
Lee Hart AWS Documentation
answered 2 years ago
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
I have couple of follow-up questions here. First, it seems that this might be a little out-of-date? When I try with
aws-cli/2.7.15
it complains that the parameters must be camel cased. I also followed the link in the first line of the answer and I am struggling to find and reference to the case. We are also trying to do this, but via Terraform and the AWS provider... any pointer here? I am going to likely start a new thread and/or a Stack Overflow questions.