-
-
Notifications
You must be signed in to change notification settings - Fork 195
feat: Add support for deletion protection functionality to table repl… #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for deletion protection functionality to table repl… #105
Conversation
|
|
main.tf
Outdated
| kms_key_arn = lookup(replica.value, "kms_key_arn", null) | ||
| propagate_tags = lookup(replica.value, "propagate_tags", null) | ||
| point_in_time_recovery = lookup(replica.value, "point_in_time_recovery", null) | ||
| deletion_protection_enabled = lookup(replica.value, "deletion_protection_enabled", false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| deletion_protection_enabled = lookup(replica.value, "deletion_protection_enabled", false) | |
| deletion_protection_enabled = lookup(replica.value, "deletion_protection_enabled", null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion. Updated accordingly ;)
|
@bryantbiggs may I get your approval in here? |
|
@antonbabenko may I get your approval in here? |
## [5.1.0](v5.0.0...v5.1.0) (2025-08-26) ### Features * Add support for deletion protection functionality to table repl… ([#105](#105)) ([b45a0b6](b45a0b6))
|
This PR is included in version 5.1.0 🎉 |
|
Thanks for your help @bryantbiggs and @antonbabenko |
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
This PR adds support for deletion protection functionality to the table replicas configuration through a new
deletion_protection_enabledargument in theaws_dynamodb_tableresource block, replica configuation. This feature allows users to enable AWS's built-in deletion protection safeguard for table replicas helping prevent accidental or unauthorized deletion of critical infrastructure.hashicorp/terraform-provider-aws#43240
Motivation and Context
This feature was recently introduced in the Terraform AWS Provider, allowing users to enable deletion protection on DynamoDB table replicas. Adding support for this new argument ensures that our module stays up to date with the latest capabilities provided by the AWS provider and allows users to take advantage of built-in safeguards to protect critical infrastructure.
This feature was added in terraform-provider-aws v6.9.0, so a provider upgrade in our module must take place.
Breaking Changes
None. This is a backward-compatible addition. The new
deletion_protection_enabledargument defaults to false, preserving existing behavior for current module users.How Has This Been Tested?
examples/*to demonstrate and validate my change(s)examples/*projectspre-commit run -aon my pull request