Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 2 additions & 1 deletion src/cluster-regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# https://www.terraform.io/docs/providers/aws/r/rds_cluster.html
module "aurora_postgres_cluster" {
source = "cloudposse/rds-cluster/aws"
version = "2.2.0"
version = "2.3.0"

cluster_type = "regional"
engine = var.engine
Expand Down Expand Up @@ -39,6 +39,7 @@ module "aurora_postgres_cluster" {
enhanced_monitoring_role_enabled = var.enhanced_monitoring_role_enabled
enhanced_monitoring_attributes = var.enhanced_monitoring_attributes
performance_insights_enabled = var.performance_insights_enabled
database_insights_mode = var.database_insights_mode
rds_monitoring_interval = var.rds_monitoring_interval
autoscaling_enabled = var.autoscaling_enabled
autoscaling_policy_type = var.autoscaling_policy_type
Expand Down
11 changes: 11 additions & 0 deletions src/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ variable "performance_insights_enabled" {
description = "Whether to enable Performance Insights"
}

variable "database_insights_mode" {
type = string
description = "The database insights mode for the RDS cluster. Valid values are `standard`, `advanced`. See https://registry.terraform.io/providers/hashicorp/aws/6.16.0/docs/resources/rds_cluster#database_insights_mode-1"
default = null

validation {
condition = contains(["standard", "advanced"], var.database_insights_mode)
error_message = "Allowed values: `standard`, `advanced`."
}
}

variable "enhanced_monitoring_role_enabled" {
type = bool
description = "A boolean flag to enable/disable the creation of the enhanced monitoring IAM role. If set to `false`, the module will not create a new role and will use `rds_monitoring_role_arn` for enhanced monitoring"
Expand Down
Loading