-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS::ECS::TaskDefinition-Volumes-EfsVolumeConfiguration #418
Comments
Now also supported for Fargate: https://aws.amazon.com/about-aws/whats-new/2020/04/amazon-ecs-aws-fargate-support-amazon-efs-filesystems-generally-available/ so having this in CloudFormation would be really important. |
Confirm, EfsVolumeConfiguration is not supported by CloudFormation. Error on Stack update:
Sample configuration:
Additionally this function need to be documented here: Just for the record, EfsVolumeConfiguration is already supported by TaskDefinition API and Console: |
It's a bit difficult to keep track because there are so many open tasks concerning this issue and I have found another one, that is already in progress. aws/containers-roadmap#825 As it's not clear when the feature lands I will most probably use a Custom Resource (see that comment) to do the EFS config because as said before the API already supports this. |
If CloudFormation is not supporting then We need to go and add mount commands in UserData of EC2 instance. |
I was wondering if we could get any update on that? |
Bump since I'm stuck on the same issue... Nice to see that https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html provides a cfn snippet but at the time of writing here it's not valid and throws error:
So what's the proper way of using EFS in Fargate with Cloudformation? |
I think it would be writing your own custom resource for TaskDefinition which honestly is a pain in the butt I hope its not gonna end up like Cognito with some of the features being implemented more than a year after their release (or was that actually around 2y don't remember now) |
what bothers me the most is that they clearly post a cloudformation snippet in their docs but when you actually try to use it, cfn will refuse it. I mean isn't this tested in any way before being posted and claimed to be working? |
@f0o |
Perhaps, the task definition and the cfn taskdefinition look almost identical |
This has been released :) |
Sweet! |
@luiseduardocolon why am I getting this error then?
|
@namedgraph https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-taskdefinition-volumes.html You probably mean to use |
@lavignes I'm using CDK 1.102.0 to generate the following:
Code: taskDefinition.addVolume(Volume.builder().
name("FusekiEndUserDataVolume").
efsVolumeConfiguration(EfsVolumeConfiguration.builder().
fileSystemId(fileSystem.getFileSystemId()).
rootDirectory(fusekiEndUserDataSourcePath).
build()).
build()); I get the |
Is it aws/aws-cdk#15025 ? |
@namedgraph oh wow. Yeah looks like a CDK bug. |
AWS::ECS::TaskDefinition-Volumes currently supports
dockerVolumeConfiguration
but not theEfsVolumeConfiguration
Feature announcement
Tutorial
Docs
Category: Compute
The text was updated successfully, but these errors were encountered: