-
Notifications
You must be signed in to change notification settings - Fork 4k
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
EFS-ECS : Mounting an existing
EFS to an ECS Task returns error Failed to resolve "fs-id"
#26476
Comments
Solved. In case you stumble upon this, know you have to also save the Access Point ID (you can find it in the EFS console or output it the first time you deploy it) and also reuse those same access points. Here is the correct code:
|
|
Describe the bug
Hi, hope to find you well. I am trying to mount an existing EFS to a group of ECS tasks. It works just fine when creating it the first time, however when I launch the stack again (therefore reusing the same EFS, I get the
Failed to resove "fs-id"
error.Expected Behavior
Here is the code that, as said, works perfectly on the first creation, but fails when reusing the same EFS
Current Behavior
See above
Reproduction Steps
Launch the stack twice, adding the QlashMainClusterEFSID Manually or importing it from cdk.json. The first launch will work just fine, the second won't
Possible Solution
Honestly, I have no idea. Could it be that the access points are not getting updated? But then why having the FileSystem.fromFileSystemAttributes) in the first place?
Additional Information/Context
No response
CDK CLI Version
2.88
Framework Version
No response
Node.js Version
18.17
OS
Linux Ubuntu
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: