cloudcomponents/cdk-constructs

Graceful Deletion of Lambda@Edge support stack

stonedMoose opened this issue · 0 comments

Hi,

I started using your awesome package recently to support lambda@edge function from a non us-east-1 stack.

I have a problem though regarding graceful deletion of the stack that used EdgeFunction construct.

When I try to delete my main stack, it fails because the edge support stack cannot be deleted because the replicated function used by cloudfront could not be deleted either.

I was wondering if there is a way to mark edge function removal policy as RETAIN, so deleting the edge support stack would not fail ?