Open
Description
Description
A new setting can be configured for a dynamodb table: RecoveryPeriodInDays
Default value is 35. Can be a number between 1 – 35 days
There is a linked issue about tables itself #41035 - this one is for table replicas
Affected Resource(s) and/or Data Source(s)
resource aws_dynamodb_table
resource aws_dynamodb_table_replica
As datasource aws_dynamodb_table
does not implement replicas[].point_in_time_recovery
attribute, I suggest to not implement this one as well. If required. replicas[]
contains an arn so datasource aws_dynamodb_table
can be used to read this property. This will allow to avoid extra SDK call.
Potential Terraform Configuration
resource "aws_dynamodb_table" "test" {
name = "test"
point_in_time_recovery {
enabled = true # already exists
recovery_period_in_days = 10 # proposed in #41484
}
replica {
region_name = data.aws_region.alternate.name
point_in_time_recovery = true # already exists
point_in_time_recovery_recovery_period_in_days = 20 # new property
}
}
resource "aws_dynamodb_table_replica" "test" {
global_table_arn = aws_dynamodb_table.test.arn
point_in_time_recovery = true # already exists
point_in_time_recovery_recovery_period_in_days = 20 # new property
}
References
#41035 this ticket is about retention period for point-in-time-recovery for tables, I already published PR #41484 to address this
Would you like to implement a fix?
Yes