Skip to content

feat: support Lambda@Edge function deletion with replica cleanup retry#606

Merged
go-to-k merged 12 commits intomainfrom
feat/lambda-edge-support
Mar 24, 2026
Merged

feat: support Lambda@Edge function deletion with replica cleanup retry#606
go-to-k merged 12 commits intomainfrom
feat/lambda-edge-support

Conversation

@go-to-k
Copy link
Copy Markdown
Owner

@go-to-k go-to-k commented Mar 24, 2026

Summary

  • Lambda@Edge functions cause DELETE_FAILED during stack deletion because edge replicas are still being cleaned up by AWS after CloudFront distribution is deleted
  • Added a new LambdaFunctionOperator that detects the "replicated function" error and retries deletion every 30 seconds (timeout: 60 minutes)
  • Implemented as an Operator (not Preprocessor) because pre-detaching Lambda@Edge from CloudFront does not reduce total wait time: replica cleanup duration is the same regardless of when detachment happens

Closes #605

@go-to-k go-to-k merged commit fcc54af into main Mar 24, 2026
2 checks passed
@go-to-k go-to-k deleted the feat/lambda-edge-support branch March 24, 2026 11:19
This was referenced Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] CloudFront with Lambda@Edge

1 participant