File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
operations/deployment/terraform/modules/aws/rds Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ resource "aws_db_instance" "default" {
78
78
maintenance_window = var. aws_rds_db_maintenance_window
79
79
apply_immediately = var. aws_rds_db_apply_immediately
80
80
performance_insights_enabled = var. aws_rds_db_performance_insights_enable
81
- performance_insights_retention_period = var. aws_rds_db_performance_insights_retention
82
- performance_insights_kms_key_id = var. aws_rds_db_performance_insights_kms_key_id
81
+ performance_insights_retention_period = aws_rds_db_performance_insights_enable ? var. aws_rds_db_performance_insights_retention : null
82
+ performance_insights_kms_key_id = aws_rds_db_performance_insights_enable ? var. aws_rds_db_performance_insights_kms_key_id : null
83
83
tags = {
84
84
Name = " ${ var . aws_resource_identifier } -rds"
85
85
}
You can’t perform that action at this time.
0 commit comments