Skip to content

Commit 46b848a

Browse files
committed
Fix dependencies for aurora perf insights
1 parent b9654cc commit 46b848a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operations/deployment/terraform/modules/aws/aurora/aws_aurora.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ resource "aws_rds_cluster" "aurora" {
9393
port = var.aws_aurora_database_port
9494
# Extras
9595
performance_insights_enabled = var.aws_aurora_performance_insights_enable
96-
performance_insights_retention_period = var.aws_aurora_performance_insights_retention
97-
performance_insights_kms_key_id = var.aws_aurora_performance_insights_kms_key_id
96+
performance_insights_retention_period = var.aws_aurora_performance_insights_enable ? var.aws_aurora_performance_insights_retention : null
97+
performance_insights_kms_key_id = var.aws_aurora_performance_insights_enable ? var.aws_aurora_performance_insights_kms_key_id : null
9898
dynamic "restore_to_point_in_time" {
9999
for_each = length(var.aws_aurora_restore_to_point_in_time) > 0 ? [var.aws_aurora_restore_to_point_in_time] : []
100100

0 commit comments

Comments
 (0)