Will retained edge functions ever be deleted? #31
Answered
by
bestickley
coltenkrauter
asked this question in
Q&A
-
|
In nextjs-distribution.ts, the edge function uses // retain on delete b/c they take too long to delete resulting in stack failure
edgeFn.applyRemovalPolicy(RemovalPolicy.RETAIN);Assuming that I delete the rest of the stack, does this mean the edge function/s will never be deleted automatically? |
Beta Was this translation helpful? Give feedback.
Answered by
bestickley
Dec 3, 2024
Replies: 1 comment 1 reply
-
|
@coltenkrauter, correct. I did this because in the future I want to have automated tests that automatically spin up and down cdk-nextjs apps and didn't want to deal CloudFormation Stack Deletion failures. But I'm open to changing this if you have good reason. Lambda@Edge functions will hopefully be optional in future. See: #8 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
coltenkrauter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@coltenkrauter, correct. I did this because in the future I want to have automated tests that automatically spin up and down cdk-nextjs apps and didn't want to deal CloudFormation Stack Deletion failures. But I'm open to changing this if you have good reason. Lambda@Edge functions will hopefully be optional in future. See: #8