This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::ECS::DaemonTaskDefinition Volume
The data volume configuration for tasks launched using this task definition.
Specifying a volume configuration in a task definition is optional. The volume
configuration may contain multiple volumes but only one volume configured at launch is
supported. Each volume defined in the volume configuration may only specify a
name and one of either configuredAtLaunch,
dockerVolumeConfiguration, efsVolumeConfiguration,
fsxWindowsFileServerVolumeConfiguration, or host. If an
empty volume configuration is specified, by default Amazon ECS uses a host volume. For
more information, see Using data volumes in
tasks.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Host" :HostVolumeProperties, "Name" :String}
YAML
Host:HostVolumePropertiesName:String
Properties
Host-
This parameter is specified when you use bind mount host volumes. The contents of the
hostparameter determine whether your bind mount host volume persists on the host container instance and where it's stored. If thehostparameter is empty, then the Docker daemon assigns a host path for your data volume. However, the data isn't guaranteed to persist after the containers that are associated with it stop running.Windows containers can mount whole directories on the same drive as
$env:ProgramData. Windows containers can't mount directories on a different drive, and mount point can't be across drives. For example, you can mountC:\my\path:C:\my\pathandD:\:D:\, but notD:\my\path:C:\my\pathorD:\:C:\my\path.Required: No
Type: HostVolumeProperties
Update requires: Replacement
Name-
The name of the volume. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.
When using a volume configured at launch, the
nameis required and must also be specified as the volume name in theServiceVolumeConfigurationorTaskVolumeConfigurationparameter when creating your service or standalone task.For all other types of volumes, this name is referenced in the
sourceVolumeparameter of themountPointsobject in the container definition.When a volume is using the
efsVolumeConfiguration, the name is required.Required: No
Type: String
Update requires: Replacement