Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EFS mount in ECS "Failed to resolve"

I am trying to create a Fargate container with a mounted EFS volume via access point, all being created through cloudformation. I see the EFS created in the portal however the ECS task is failing with:

Failed to resolve "fs-XXX.efs.eu-west-2.amazonaws.com" - check that your file system ID is correct

Before adding the accesspoint the mounting worked. I need the accesspoint since the container is using non-root user.

The VPC has DNS and hostname lookup enabled.

Here is the cloudformation template: https://pastebin.com/CgtvV17B

like image 739
itaysk Avatar asked Jan 25 '26 08:01

itaysk


1 Answers

the problem was missing EFS Mount Target https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html

like image 149
itaysk Avatar answered Jan 26 '26 22:01

itaysk