Skip to content

(ECS): Why Volumes are not supported in ECS Anywhere (ExternalTaskDefinition) #19259

@tomhol

Description

@tomhol

General Issue

Local Volume support in ECS Anywhere

The Question

Python code here:
https://github.com/aws/aws-cdk/blame/e0f863a4c56041860e14c75b9aa5a6d35860fae6/packages/%40aws-cdk/aws-ecs/lib/external/external-task-definition.ts#L78-L83

It seems the Volumes are not supported in ExternalTaskDefinition.

But according to documentation https://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-volumes.html

...
Docker volumes are only supported when using the EC2 launch type or external instances.
..

It seems it should be supported for External Task Definitions.
What is the situation here? Is it a missout or a thing planned for future?
(asking because I'd like to use this feature ;))

Or am I missing something and another method should be used to configure external task with volumes?2.15.0

Thanks, Tomas.

CDK CLI Version

2.15.0

Framework Version

No response

Node.js Version

No response

OS

No response

Language

Typescript

Language Version

No response

Other information

No response

Metadata

Metadata

Labels

@aws-cdk/aws-ecsRelated to Amazon Elastic ContainerbugThis issue is a bug.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions