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

Amazon EC2 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

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

YAML

Copy
Name: String Host: Host

Properties

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

Name

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

Required: Yes

Type: String

Host

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

Required: No

Type: Amazon EC2 Container Service TaskDefinition Volumes Host