(aws-efs): EFS FileSystem construction always fails when passing both lifecyclePolicy and outOfInfrequentAccessPolicy #19058
Labels
@aws-cdk/aws-efs
Related to Amazon Elastic File System
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
p1
What is the problem?
When deploying an example in the official CDK document, EFS creation always fails with the following error:
After some investigation, I have found that setting both
lifecyclePolicy
andoutOfInfrequentAccessPolicy
is the cause of the problem. When you pass only one of them to a construct, it successfully deployed to AWS.I assume that means CloudFormation template does not allow multiple entries in one
LifecyclePolicies
item. So, I have not confirmed though, the following changes to emitted CloudFormation template may work.Bad
Good
Reproduction Steps
Running the example code in the official document
CDK stack source code:
CloudFormation template emitted:
What did you expect to happen?
You can successfully deploy EFS even when you set both
lifecyclePolicy
andoutOfInfrequentAccessPolicy
.What actually happened?
Deployment fails with the error message:
CDK CLI Version
2.13.0 (build b0b744d)
Framework Version
No response
Node.js Version
v16.13.2
OS
macOS 12.2.1
Language
Typescript
Language Version
4.5.5
Other information
No response
The text was updated successfully, but these errors were encountered: