Interface FargateTaskDefinitionArgs

The set of arguments for constructing a FargateTaskDefinition resource.

interface FargateTaskDefinitionArgs {
    container?: TaskDefinitionContainerDefinitionArgs;
    containers?: {
        [key: string]: TaskDefinitionContainerDefinitionArgs;
    };
    cpu?: any;
    ephemeralStorage?: any;
    executionRole?: DefaultRoleWithPolicyArgs;
    family?: any;
    inferenceAccelerators?: any;
    ipcMode?: any;
    logGroup?: DefaultLogGroupArgs;
    memory?: any;
    pidMode?: any;
    placementConstraints?: any;
    proxyConfiguration?: any;
    runtimePlatform?: any;
    skipDestroy?: any;
    tags?: any;
    taskRole?: DefaultRoleWithPolicyArgs;
    volumes?: any;
}

Properties

Single container to make a TaskDefinition from. Useful for simple cases where there aren't multiple containers, especially when creating a TaskDefinition to call [run] on.

Either [container] or [containers] must be provided.

containers?: {
    [key: string]: TaskDefinitionContainerDefinitionArgs;
}

All the containers to make a TaskDefinition from. Useful when creating a Service that will contain many containers within.

Either [container] or [containers] must be provided.

Type declaration

cpu?: any

The number of cpu units used by the task. If not provided, a default will be computed based on the cumulative needs specified by [containerDefinitions]

ephemeralStorage?: any

The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage.

The execution role that the Amazon ECS container agent and the Docker daemon can assume. Will be created automatically if not defined.

family?: any

An optional unique name for your task definition. If not specified, then a default will be created.

inferenceAccelerators?: any

Configuration block(s) with Inference Accelerators settings. Detailed below.

ipcMode?: any

IPC resource namespace to be used for the containers in the task The valid values are host, task, and none.

A set of volume blocks that containers in your task may use.

memory?: any

The amount (in MiB) of memory used by the task. If not provided, a default will be computed based on the cumulative needs specified by [containerDefinitions]

pidMode?: any

Process namespace to use for the containers in the task. The valid values are host and task.

placementConstraints?: any

Configuration block for rules that are taken into consideration during task placement. Maximum number of placement_constraints is 10. Detailed below.

proxyConfiguration?: any

Configuration block for the App Mesh proxy. Detailed below.

runtimePlatform?: any

Configuration block for runtime_platform that containers in your task may use.

skipDestroy?: any

Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is false.

tags?: any

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

IAM role that allows your Amazon ECS container task to make calls to other AWS services. Will be created automatically if not defined.

volumes?: any

Configuration block for volumes that containers in your task may use. Detailed below.

Generated using TypeDoc