Skip to content

[Step Functions] Run ECS Task with dynamic Task Definition #5931

@skorfmann

Description

@skorfmann

❓ Run ECS Task in Step Functions with dynamic Task Definition

The Question

I'm wondering why this can't be an ITaskDefinition, since I'd like to dynamically pull the task definition from the input. According to the Step Functions UI it's possible to do so

/**
* Task Definition used for running tasks in the service.
*
* Note: this must be TaskDefinition, and not ITaskDefinition,
* as it requires properties that are not known for imported task definitions
*/
readonly taskDefinition: ecs.TaskDefinition;

Screenshot 2020-01-23 at 14 49 47

Environment

  • CDK CLI Version: 1.21.1 (build 842cc5f)
  • Module Version: @aws-cdk/aws-stepfunctions-tasks": "1.19.0
  • OS: OSX Catalina
  • Language: TypeScript

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-stepfunctionsRelated to AWS StepFunctionsclosing-soonThis issue will automatically close in 4 days unless further comments are made.feature-requestA feature should be added or improved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions