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:DockerVolumeConfigurationHost:HostName: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
localdriver. To use bind mounts, specify ahostinstead.Required: No
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
