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

Amazon Elastic Container Service TaskDefinition Device

The Device property type specifies a device on a host container instance.

The Devices property of the Amazon ECS TaskDefinition LinuxParameters contains a list of Device property types.

Syntax

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

JSON

Copy
{ "ContainerPath" : String, "HostPath" : String, "Permissions" : [ String, ... ] }

YAML

Copy
ContainerPath: String HostPath: String Permissions: - String

Properties

ContainerPath

The path inside the container to expose the host device to.

Required: No

Type: String

Update requires: Replacement

HostPath

The path for the device on the host container instance.

Required: Yes

Type: String

Update requires: Replacement

Permissions

The explicit permissions to provide to the container for the device. By default, the container is able to read, write, and mknod the device.

Required: No

Type: List of String values

Valid values: read, write, and mknod

Update requires: Replacement

On this page: