The details of a task definition run on an External cluster.
import { ExternalTaskDefinition } from 'aws-cdk-lib/aws-ecs';Or use the module namespace:
import * as ecs from 'aws-cdk-lib/aws-ecs';
// ecs.ExternalTaskDefinitionConfiguration passed to the constructor as ExternalTaskDefinitionProps.
networkModeOptionalNetworkModeThe networking mode to use for the containers in the task. With ECS Anywhere, supported modes are bridge, host and none.
Default: NetworkMode.BRIDGE
CommonTaskDefinitionPropsenableFaultInjectionOptionalinherited from CommonTaskDefinitionPropsbooleanEnables fault injection and allows for fault injection requests to be accepted from the task's containers. Fault injection only works with tasks using the {@link NetworkMode.AWS_VPC} or {@link NetworkMode.HOST} network modes.
Default: undefined - ECS default setting is false
executionRoleOptionalinherited from CommonTaskDefinitionPropsIRoleThe name of the IAM task execution role that grants the ECS agent permission to call AWS APIs on your behalf. The role will be used to retrieve container images from ECR and create CloudWatch log groups.
Default: - An execution role will be automatically created if you use ECR images in your task definition.
familyOptionalinherited from CommonTaskDefinitionPropsstringThe name of a family that this task definition is registered to. A family groups multiple versions of a task definition.
Default: - Automatically generated name.
proxyConfigurationOptionalinherited from CommonTaskDefinitionPropsProxyConfigurationThe configuration details for the App Mesh proxy.
Default: - No proxy configuration.
taskRoleOptionalinherited from CommonTaskDefinitionPropsIRoleThe name of the IAM role that grants containers in the task permission to call AWS APIs on your behalf.
Default: - A task role is automatically created for you.
volumesOptionalinherited from CommonTaskDefinitionPropsVolume[]The list of volume definitions for the task. For more information, see [Task Definition Parameter Volumes](https://docs.aws.amazon.com/AmazonECS/latest/developerguide//task_definition_parameters.html#volumes).
Default: - No volumes are passed to the Docker daemon on a container instance.
Everything you need to know about Amazon ECS on one page. HD quality, print-friendly.
Download Free Infographicaws-ecs