Skip to content

EFS: It forces me to replace the EFS which have files #20049

Answered by peterwoodworth
tom10271 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @tom10271, going to migrate this to a discussion.

Adding encryption was part of our graduating this module to stable. This was back a year ago, so before we released v2. What we did to prevent breaking existing users was to hide this behind a feature flag.

However, CDK v2 removed most feature flags. These are the only ones we still support in v2. I believe that your best path forward here is to remove the encryption property with an escape hatch

const cfnFs = fs.node.defaultChild as CfnFileSystem;
cfnFs.addPropertyDeletionOverride('Encrypted')

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by peterwoodworth
Comment options

You must be logged in to vote
2 replies
@peterwoodworth
Comment options

@skinny85
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
@aws-cdk/aws-efs Related to Amazon Elastic File System
3 participants
Converted from issue

This discussion was converted from issue #20025 on April 22, 2022 21:02.