Skip to content

Commit

Permalink
Fix conflicting restore_to_point_in_time attributes (#217)
Browse files Browse the repository at this point in the history
* Fix conflicting `restore_to_point_in_time` attributes

* Simplify conflicting `restore_to_point_in_time` attributes
  • Loading branch information
ericluria authored Jun 7, 2024
1 parent 54be61f commit 896af79
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ resource "aws_rds_cluster" "primary" {
dynamic "restore_to_point_in_time" {
for_each = var.restore_to_point_in_time
content {
source_cluster_identifier = restore_to_point_in_time.value.source_cluster_identifier
restore_type = restore_to_point_in_time.value.restore_type
use_latest_restorable_time = restore_to_point_in_time.value.use_latest_restorable_time
source_cluster_identifier = restore_to_point_in_time.value.source_cluster_identifier
restore_type = restore_to_point_in_time.value.restore_type
# use_latest_restorable_time and restore_to_time are mutually exclusive.
# If restore_to_time is given, then we ignore use_latest_restorable_time
use_latest_restorable_time = restore_to_point_in_time.value.restore_to_time != null ? null : restore_to_point_in_time.value.use_latest_restorable_time
restore_to_time = restore_to_point_in_time.value.restore_to_time
}
}
Expand Down

0 comments on commit 896af79

Please sign in to comment.