Skip to content

feat: Add deletion_protection_enabled argument for lambda log group#736

Merged
antonbabenko merged 4 commits intoterraform-aws-modules:masterfrom
azamarassy:feat/add-log-group-deletion-protection
Feb 18, 2026
Merged

feat: Add deletion_protection_enabled argument for lambda log group#736
antonbabenko merged 4 commits intoterraform-aws-modules:masterfrom
azamarassy:feat/add-log-group-deletion-protection

Conversation

@azamarassy
Copy link
Contributor

Description

This PR adds the cloudwatch_logs_deletion_protection_enabled argument to the aws_cloudwatch_log_group resource within the Lambda module. This allows users to control the deletion protection setting for the log group created by the module.

Motivation and Context

This change is required to support the new deletion protection feature for CloudWatch Log Groups, which was recently added to the Terraform AWS Provider.

Reference: AWS Provider CHANGELOG v6.25.0

  • resource/aws_cloudwatch_log_group: Add deletion_protection_enabled argument (#45298)

This PR addresses the request in issue #735.

Breaking Changes

No. This change is backward compatible as the default value is set to null, which preserves the provider's default behavior.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

@azamarassy azamarassy force-pushed the feat/add-log-group-deletion-protection branch from cb11a0b to 751ff08 Compare February 10, 2026 18:54
@antonbabenko antonbabenko merged commit 9b6ba43 into terraform-aws-modules:master Feb 18, 2026
30 checks passed
antonbabenko pushed a commit that referenced this pull request Feb 18, 2026
## [8.6.0](v8.5.1...v8.6.0) (2026-02-18)

### Features

* Add deletion_protection_enabled argument for lambda log group ([#736](#736)) ([9b6ba43](9b6ba43))
@antonbabenko
Copy link
Member

This PR is included in version 8.6.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants