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

Amazon Elastic Container Service TaskDefinition Volumes

Volumes is a property of the AWS::ECS::TaskDefinition resource that specifies a list of data volumes, which your containers can then access.

Syntax

JSON

{ "DockerVolumeConfiguration" : DockerVolumeConfiguration, "Host" : Host, "Name" : String }

YAML

DockerVolumeConfiguration: DockerVolumeConfiguration Host: Host Name: String

Properties

For more information about each property, see Task Definition Parameters in the Amazon Elastic Container Service Developer Guide.

DockerVolumeConfiguration

Specifies the configuration of a Docker volume. This parameter is specified when using Docker volumes. Docker volumes are only supported when using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify a host instead.

Required: No

Type: Amazon ECS TaskDefinition DockerVolumeConfiguration

Host

Determines whether your data volume persists on the host container instance and at the location where it is stored.

Required: No

Type: Amazon Elastic Container Service TaskDefinition Volumes Host

Name

The name of the volume. To specify mount points in your container definitions, use the value of this property.

Required: Yes

Type: String

On this page: