Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Conversation

@oyakodon
Copy link
Owner

This pull request introduces a configuration change to the CloudFormation template for Lambda log groups. The most important update is the addition of a DeletionPolicy to retain logs when the stack is deleted.

CloudFormation template improvements:

  • Added DeletionPolicy: Retain to the LambdaLogGroup resource in .aws/cfn-service.yml, ensuring that log data is preserved even if the stack is deleted.

@oyakodon oyakodon requested a review from Copilot October 27, 2025 15:56
@oyakodon oyakodon self-assigned this Oct 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a DeletionPolicy: Retain attribute to the Lambda CloudWatch Logs log group resource in the CloudFormation template, ensuring that log data is preserved when the CloudFormation stack is deleted.

Key Changes:

  • Added DeletionPolicy: Retain to the LambdaLogGroup resource to prevent automatic deletion of logs during stack removal

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@oyakodon oyakodon merged commit 0916993 into main Oct 27, 2025
1 check passed
@oyakodon oyakodon deleted the fix/cfn-deletion-policy branch October 27, 2025 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants