(stepfunctions-task): BatchSubmitJob uses deprecated (and thereby ignored) container overrides API #18993
Labels
@aws-cdk/aws-stepfunctions-tasks
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p1
What is the problem?
A
BatchSubmitJob
task allows configuration via an instance ofBatchSubmitJobProps
, which itself allows configuration overrides on the running container via an instance ofBatchContainerOverrides
.Unfortunately, AWS Batch's submit job has deprecated the
containerOverrides
structure and now ignores it in favor of the defaults specified in theJobDefinition
.Neither the current V1 nor V2 CDK expose this new structure, nor does the CDK synthesis translate the old container overrides structure into the new structure.
Reproduction Steps
This can not plausibly be an SSCCE, but the batch submit job definition does look like, for example:
What did you expect to happen?
That, if the hypothetical job definition specifies a vCPU of 2, and a memory of 4,096, that the reproduction example would start a container with a vCPU of 16. and a memory of 32,768
What actually happened?
I will attach a screen shot of what the console shows in this situation, but in the continued hypothetical case, the container is launched with the job definition's default of a vCPU of 2 and memory of 4,096.
CDK CLI Version
1.116.0
Framework Version
No response
Node.js Version
14.18.0
OS
macOS 11.6.3
Language
Typescript
Language Version
3.8.3
Other information
No response
The text was updated successfully, but these errors were encountered: