AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon Elastic Container Service TaskDefinition LinuxParameters

The LinuxParameters property type specifies Linux-specific options to apply to an Amazon Elastic Container Service (Amazon ECS) container.

LinuxParameters is a property of the Amazon Elastic Container Service TaskDefinition ContainerDefinition property type.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Capabilities" : KernelCapabilities, "Devices" : [ Device, ... ], "InitProcessEnabled" : Boolean, "SharedMemorySize" : Integer, "Tmpfs" : [ Tmpfs, ... ] }

Properties

Capabilities

The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.

Required: No

Type: Amazon ECS TaskDefinition KernelCapabilities

Update requires: Replacement

Devices

Any host devices to expose to the container. This maps to Devices in the Create a container section of the Docker Remote API and the --device option to docker run.

Required: No

Type: List of Amazon ECS TaskDefinition Device property types

Update requires: Replacement

InitProcessEnabled

Indicates whether to run an init process inside the container that forwards signals and reaps processes. This maps to the --init option to docker run.

This property requires at least version 1.25 of the Docker Remote API on your container instance. To check the API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep "Server API version"

Required: No

Type: Boolean

Update requires: Replacement

SharedMemorySize

The value for the size (in MiB) of the /dev/shm volume. This parameter maps to the --shm-size option to docker run.

Note

If you are using tasks that use the Fargate launch type, SharedMemorySize is not supported.

Required: No

Type: Integer

Update requires: Replacement

Tmpfs

The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the --tmpfs option to docker run.

Note

If you are using tasks that use the Fargate launch type, Tmpfs is not supported.

Required: No

Type: List of Amazon ECS TaskDefinition Tmpfs property types

Update requires: Replacement

See Also

On this page: