RunEcsEc2Task(*, placement_constraints=None, placement_strategies=None, security_group=None, subnets=None, cluster, task_definition, container_overrides=None, integration_pattern=None)¶
(deprecated) Run an ECS/EC2 Task in a StepFunctions workflow.
PlacementConstraint]]) – Placement constraints. Default: No constraints
PlacementStrategy]]) – Placement strategies. Default: No strategies
ISecurityGroup]) – Existing security group to use for the task’s ENIs. (Only applicable in case the TaskDefinition is configured for AwsVpc networking) Default: A new security group is created
SubnetSelection]) – In what subnets to place the task’s ENIs. (Only applicable in case the TaskDefinition is configured for AwsVpc networking) Default: Private subnets
ICluster) – The topic to run the task on.
TaskDefinition) – 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
ContainerOverride]]) – Container setting overrides. Key is the name of the container to override, value is the values you want to override. Default: - No overrides
ServiceIntegrationPattern]) – The service integration pattern indicates different ways to call RunTask in ECS. The valid value for Lambda is FIRE_AND_FORGET, SYNC and WAIT_FOR_TASK_TOKEN. Default: FIRE_AND_FORGET
Called when the task object is used in a workflow.