Commit d3ab45ec authored by Aaron Walker's avatar Aaron Walker Committed by Anton Babenko

Disable perf insights ret period when disabled (#153)

parent 57a91d66
...@@ -82,7 +82,7 @@ resource "aws_db_instance" "this" { ...@@ -82,7 +82,7 @@ resource "aws_db_instance" "this" {
max_allocated_storage = var.max_allocated_storage max_allocated_storage = var.max_allocated_storage
performance_insights_enabled = var.performance_insights_enabled performance_insights_enabled = var.performance_insights_enabled
performance_insights_retention_period = var.performance_insights_retention_period performance_insights_retention_period = var.performance_insights_enabled == true ? var.performance_insights_retention_period : null
backup_retention_period = var.backup_retention_period backup_retention_period = var.backup_retention_period
backup_window = var.backup_window backup_window = var.backup_window
...@@ -153,7 +153,7 @@ resource "aws_db_instance" "this_mssql" { ...@@ -153,7 +153,7 @@ resource "aws_db_instance" "this_mssql" {
max_allocated_storage = var.max_allocated_storage max_allocated_storage = var.max_allocated_storage
performance_insights_enabled = var.performance_insights_enabled performance_insights_enabled = var.performance_insights_enabled
performance_insights_retention_period = var.performance_insights_retention_period performance_insights_retention_period = var.performance_insights_enabled == true ? var.performance_insights_retention_period : null
backup_retention_period = var.backup_retention_period backup_retention_period = var.backup_retention_period
backup_window = var.backup_window backup_window = var.backup_window
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment