I'm trying to leverage a recently released feature of AWS which allows users to mount EFS file systems to ECS containers. Step 4 in this tutorial demonstrates the JSON CloudFormation code to do so, and I would think what I have below would be the correct YAML equivalent of it. However, it returns the following error when applying it:
"Resource creation cancelled" "Encountered unsupported property EFSVolumeConfiguration"]
I would appreciate any help in understanding how to fix this error, below is a simplified version of my CloudFormation code:
TaskDefinition:
Type: AWS::ECS::TaskDefinition
Properties:
Cpu: ...
Memory: ...
ContainerDefinitions:
- Name: ...
Cpu: ...
Memory: ...
Image: ...
MountPoints:
- ContainerPath: /var/www/html/img
SourceVolume: ImgEFS
PortMappings:
- ContainerPort: ...
Environment:
...
Volumes:
- Name : ImgEFS
EFSVolumeConfiguration:
FileSystemId: ...