Skip to content
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-cdk): (To be able to create in the same stack: an EFS, EFS access point, and EFS file system policy to govern that access point) #27123

Closed
2 tasks
JayeMcC opened this issue Sep 13, 2023 · 2 comments
Labels
@aws-cdk/aws-efs Related to Amazon Elastic File System feature-request A feature should be added or improved.

Comments

@JayeMcC
Copy link

JayeMcC commented Sep 13, 2023

Describe the feature

I want to create an EFS, EFS access points, and EFS file system policies that govern those access points in the same stack.

Use Case

This causes a circular dependency error (as we refer to the access point ID in the policy).

The current (ridiculous) workaround if you don't want to do things manually is to create the EFS and access points in one stack, then in a new stack, use a lambda to query the now-created EFS by name, then retrieve the access points to pull the ids off of. All up it's ~250 lines of code that shouldn't need to be there.

Proposed Solution

Split efs policy out to a separate resource.

Other Information

I encountered this while using CDK, expecting it to work a certain way. The underlying issue may be a CloudFormation issue more than the CDK, but the proposal in CloudFormation has been dead since 2021: aws-cloudformation/cloudformation-coverage-roadmap#900

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.95.1 (build ae455d8)

Environment details (OS name and version, etc.)

macOS Ventura 13.5.1 (22G90)

@JayeMcC JayeMcC added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 13, 2023
@github-actions github-actions bot added the @aws-cdk/aws-efs Related to Amazon Elastic File System label Sep 13, 2023
@JayeMcC JayeMcC changed the title (aws-cdk): (Create an EFS, EFS access points, and EFS file system policies that govern those access points in the same stack) (aws-cdk): (To be able to create in the same stack: an EFS, EFS access point, and EFS file system policy to govern that access point) Sep 13, 2023
@peterwoodworth peterwoodworth removed the needs-triage This issue or PR still needs to be triaged. label Sep 13, 2023
@peterwoodworth
Copy link
Contributor

Yeah, we would need that cloudformation support first. the workaround will have to do for now

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-efs Related to Amazon Elastic File System feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants