Open
Description
Describe the feature
I would like to specify containerOverrides
in props
of EcsRunFargateTask.
Use Case
It allows the creation of multiple schedules with different arguments from a single task definition.
Proposed Solution
Like aws_stepfunctions_tasks.ContainerOverrides
import * as scheduler from 'aws-cdk-lib/aws-scheduler'
import * as schedulerTargets from 'aws-cdk-lib/aws-scheduler-targets'
new scheduler.Schedule(this, `${taskConfig.name}Schedule`, {
schedule: scheduler.ScheduleExpression.expression(taskConfig.scheduleExpression),
target: new schedulerTargets.EcsRunFargateTask(ecsCluster, {
taskDefinition,
containerOverrides: {command: [taskConfig.name]}
}),
})
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.1007.0 (build d3f6c3c)
Environment details (OS name and version, etc.)
Mac