-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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: Lookup for filesystems by name #26661
Comments
I'm not sure I understand, if you want to create a new FileSystem and have your stack control that FileSystem, then you want to use |
Hi,
since, file_system_name is not unique, I was expecting a function that returns array of file_system having the given file_system_name and I can work accordingly on them |
You need to either have your stack manage a resource ( |
|
Describe the feature
Whenever we want to use an existing EFS, we have to refer it by arn or ID. Why not have a look up that returns list of filesystems and we can continue with it
Use Case
First time i deploy, i expect the EFS to be created fresh. Second time when i deploy a stack, i want to code like if this filesystem with the given name already exists, use it, like that. But not able to do as as arn/filesystemid is mandatory
Proposed Solution
Have a lookup function which returns array of file systems available with the given name
Other Information
No response
Acknowledgements
CDK version used
2.63.2
Environment details (OS name and version, etc.)
MacOS Ventura 13.4.1
The text was updated successfully, but these errors were encountered: