Skip to content

Commit

Permalink
refactor: key of Overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
kackyt committed Jun 4, 2024
1 parent 4741f5f commit 7cd31e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class EcsRunTask extends sfn.TaskStateBase implements ec2.IConnectable {
Overrides: {
Cpu: this.props.cpu,
Memory: this.props.memoryMiB,
...renderOverrides(this.props.containerOverrides),
ContainerOverrides: renderOverrides(this.props.containerOverrides),
},
PropagateTags: this.props.propagatedTagSource,
...this.props.launchTarget.bind(this, { taskDefinition: this.props.taskDefinition, cluster: this.props.cluster }).parameters,
Expand Down Expand Up @@ -459,5 +459,5 @@ function renderOverrides(containerOverrides?: ContainerOverride[]) {
});
}

return { ContainerOverrides: ret };
return ret;
}

0 comments on commit 7cd31e3

Please sign in to comment.