EcsTaskProperties
¶
Source code in docs_src/capo_batch/types/ecs_task_properties.py
containers
instance-attribute
¶
containers: NotRequired[ListTaskContainerProperties]
This object is a list of containers.
enable_execute_command
instance-attribute
¶
enable_execute_command: NotRequired[Boolean]
Determines whether execute command functionality is turned on for this task. If true, execute command functionality is turned on all the containers in the task.
ephemeral_storage
instance-attribute
¶
ephemeral_storage: NotRequired[EphemeralStorage]
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 Fargate.
execution_role_arn
instance-attribute
¶
execution_role_arn: NotRequired[String]
The Amazon Resource Name (ARN) of the execution role that Batch can assume. For jobs that run on Fargate resources, you must provide an execution role. For more information, see Batch execution IAM role in the Batch User Guide.
ipc_mode
instance-attribute
¶
ipc_mode: NotRequired[String]
The IPC resource namespace to use for the containers in the task. The valid values are host, task, or none.
If host is specified, all containers within the tasks that specified the host IPC mode on the same container instance share the same IPC resources with the host Amazon EC2 instance.
If task is specified, all containers within the specified task share the same IPC resources.
If none is specified, the IPC resources within the containers of a task are private, and are not shared with other containers in a task or on the container instance.
If no value is specified, then the IPC resource namespace sharing depends on the Docker daemon setting on the container instance. For more information, see IPC settings in the Docker run reference.
This parameter is not supported for jobs that run on Fargate resources.
network_configuration
instance-attribute
¶
network_configuration: NotRequired[NetworkConfiguration]
The network configuration for jobs that are running on Fargate resources. Jobs that are running on Amazon EC2 resources or Amazon ECS Managed Instances must not specify this parameter.
network_mode
instance-attribute
¶
network_mode: NotRequired[String]
The network mode to use for the task. Valid values: host. When not specified, the default is host.
With host mode, the container shares the host instance's network stack directly. When running tasks that use the host network mode, do not run containers using the root user (UID 0). Running as root grants unrestricted access to host resources and increases the attack surface.
This parameter only applies to jobs running on Amazon ECS Managed Instances (MANAGED_INSTANCES platform capability). It cannot be specified for Fargate or Amazon EC2 platform job definitions.
pid_mode
instance-attribute
¶
pid_mode: NotRequired[String]
The process namespace to use for the containers in the task. The valid values are host or task. For example, monitoring sidecars might need pidMode to access information about other containers running in the same task.
If host is specified, all containers within the tasks that specified the host PID mode on the same container instance share the process namespace with the host Amazon EC2 instance.
If task is specified, all containers within the specified task share the same process namespace.
If no value is specified, the default is a private namespace for each container. For more information, see PID settings in the Docker run reference.
platform_version
instance-attribute
¶
platform_version: NotRequired[String]
The Fargate platform version where the jobs are running. A platform version is specified only for jobs that are running on Fargate resources. If one isn't specified, the LATEST platform version is used by default. This uses a recent, approved version of the Fargate platform for compute resources. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.
runtime_platform
instance-attribute
¶
runtime_platform: NotRequired[RuntimePlatform]
An object that represents the compute environment architecture for Batch jobs on Fargate or Amazon ECS Managed Instances. Use this to specify the operating system family (operatingSystemFamily) and CPU architecture (cpuArchitecture).
For Amazon ECS Managed Instances, the valid value for operatingSystemFamily is LINUX (default). The valid values for cpuArchitecture are X86_64 and ARM64.
task_role_arn
instance-attribute
¶
task_role_arn: NotRequired[String]
The Amazon Resource Name (ARN) that's associated with the Amazon ECS task.
This is object is comparable to ContainerProperties:jobRoleArn.