Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ module "db_instance" {
performance_insights_enabled = var.performance_insights_enabled
performance_insights_retention_period = var.performance_insights_retention_period
performance_insights_kms_key_id = var.performance_insights_enabled ? var.performance_insights_kms_key_id : null
performance_insights_mode = var.performance_insights_enabled ? var.performance_insights_mode : null

replicate_source_db = var.replicate_source_db
replica_mode = var.replica_mode
Expand Down
1 change: 1 addition & 0 deletions modules/db_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ resource "aws_db_instance" "this" {
performance_insights_enabled = var.performance_insights_enabled
performance_insights_retention_period = var.performance_insights_enabled ? var.performance_insights_retention_period : null
performance_insights_kms_key_id = var.performance_insights_enabled ? var.performance_insights_kms_key_id : null
performance_insights_mode = var.performance_insights_enabled ? var.performance_insights_mode : null

replicate_source_db = var.replicate_source_db
replica_mode = var.replica_mode
Expand Down
6 changes: 6 additions & 0 deletions modules/db_instance/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,12 @@ variable "performance_insights_kms_key_id" {
default = null
}

variable "performance_insights_mode" {
description = "The mode of Performance Insights that is enabled for the instance. Valid values: standard, advanced"
type = string
default = "standard"
}

variable "max_allocated_storage" {
description = "Specifies the value for Storage Autoscaling"
type = number
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,12 @@ variable "performance_insights_kms_key_id" {
default = null
}

variable "performance_insights_mode" {
description = "The mode of Performance Insights that is enabled for the instance. Valid values: standard, advanced"
type = string
default = "standard"
}

variable "max_allocated_storage" {
description = "Specifies the value for Storage Autoscaling"
type = number
Expand Down
Loading