diff --git a/src/main.tf b/src/main.tf index 4c311e0..cafec07 100644 --- a/src/main.tf +++ b/src/main.tf @@ -4,7 +4,7 @@ locals { module "documentdb_cluster" { source = "cloudposse/documentdb-cluster/aws" - version = "0.14.0" + version = "0.27.0" instance_class = var.instance_class cluster_size = var.cluster_size @@ -14,6 +14,7 @@ module "documentdb_cluster" { engine_version = var.engine_version deletion_protection = var.deletion_protection_enabled enabled_cloudwatch_logs_exports = var.enabled_cloudwatch_logs_exports + enable_performance_insights = var.enable_performance_insights storage_encrypted = var.encryption_enabled snapshot_identifier = var.snapshot_identifier diff --git a/src/variables.tf b/src/variables.tf index f9f5222..a9a6cbf 100644 --- a/src/variables.tf +++ b/src/variables.tf @@ -116,6 +116,12 @@ variable "enabled_cloudwatch_logs_exports" { default = [] } +variable "enable_performance_insights" { + type = bool + description = "Specifies whether to enable Performance Insights for the DB Instance." + default = false +} + variable "eks_security_group_ingress_enabled" { type = bool description = "Whether to add the Security Group managed by the EKS cluster in the same regional stack to the ingress allowlist of the DocumentDB cluster."