File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ resource "aws_rds_cluster" "this" {
57
57
port = local. port
58
58
db_subnet_group_name = local. db_subnet_group_name
59
59
vpc_security_group_ids = compact (concat (aws_security_group. this . * . id , var. vpc_security_group_ids ))
60
- snapshot_identifier = length ( keys ( var. restore_to_point_in_time )) == 0 ? var . snapshot_identifier : null
60
+ snapshot_identifier = var. snapshot_identifier
61
61
storage_encrypted = var. storage_encrypted
62
62
apply_immediately = var. apply_immediately
63
63
db_cluster_parameter_group_name = var. db_cluster_parameter_group_name
@@ -95,7 +95,7 @@ resource "aws_rds_cluster" "this" {
95
95
for_each = length (keys (var. restore_to_point_in_time )) == 0 ? [] : [var . restore_to_point_in_time ]
96
96
97
97
content {
98
- source_cluster_identifier = lookup ( restore_to_point_in_time. value , " source_cluster_identifier" , null )
98
+ source_cluster_identifier = restore_to_point_in_time. value . source_cluster_identifier
99
99
restore_type = lookup (restore_to_point_in_time. value , " restore_type" , null )
100
100
use_latest_restorable_time = lookup (restore_to_point_in_time. value , " use_latest_restorable_time" , null )
101
101
restore_to_time = lookup (restore_to_point_in_time. value , " restore_to_time" , null )
You can’t perform that action at this time.
0 commit comments