File tree Expand file tree Collapse file tree
terraform/aws/modules/composition/database Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ resource "aws_rds_cluster" "main" {
161161 # Monitoring
162162 enabled_cloudwatch_logs_exports = var. enabled_cloudwatch_logs_exports
163163 performance_insights_enabled = var. performance_insights_enabled
164- performance_insights_kms_key_id = local. kms_key_arn_for_performance_insights
164+ performance_insights_kms_key_id = var . performance_insights_enabled ? local. kms_key_arn_for_performance_insights : null
165165 performance_insights_retention_period = var. performance_insights_enabled ? var. performance_insights_retention_period : null
166166 monitoring_interval = var. monitoring_interval
167167 monitoring_role_arn = var. monitoring_role_arn
@@ -296,7 +296,7 @@ resource "aws_rds_cluster_instance" "instances" {
296296
297297 # Performance Insights
298298 performance_insights_enabled = each. value . performance_insights_enabled != null ? each. value . performance_insights_enabled : var. performance_insights_enabled
299- performance_insights_kms_key_id = each. value . performance_insights_kms_key_id != null ? each. value . performance_insights_kms_key_id : local. kms_key_arn_for_performance_insights
299+ performance_insights_kms_key_id = ( each. value . performance_insights_enabled != null ? each . value . performance_insights_enabled : var . performance_insights_enabled ) ? (each . value . performance_insights_kms_key_id != null ? each. value . performance_insights_kms_key_id : local. kms_key_arn_for_performance_insights ) : null
300300 performance_insights_retention_period = (each. value . performance_insights_enabled != null ? each. value . performance_insights_enabled : var. performance_insights_enabled ) ? (each. value . performance_insights_retention_period != null ? each. value . performance_insights_retention_period : var. performance_insights_retention_period ) : null
301301
302302 # High Availability
You can’t perform that action at this time.
0 commit comments