diff --git a/main.tf b/main.tf index 4a0f686..1f94cad 100644 --- a/main.tf +++ b/main.tf @@ -189,6 +189,7 @@ resource "aws_rds_cluster_instance" "cluster_instance_0" { auto_minor_version_upgrade = var.auto_minor_version_upgrade promotion_tier = "0" performance_insights_enabled = var.performance_insights_enabled + ca_cert_identifier = var.ca_cert_identifier tags = { envname = var.envname @@ -215,6 +216,7 @@ resource "aws_rds_cluster_instance" "cluster_instance_n" { auto_minor_version_upgrade = var.auto_minor_version_upgrade promotion_tier = count.index + 1 performance_insights_enabled = var.performance_insights_enabled + ca_cert_identifier = var.ca_cert_identifier tags = { envname = var.envname @@ -247,6 +249,7 @@ resource "aws_rds_cluster" "default" { deletion_protection = var.deletion_protection allow_major_version_upgrade = var.allow_major_version_upgrade + tags = var.additional_tags } diff --git a/variables.tf b/variables.tf index a0b0358..6f74802 100644 --- a/variables.tf +++ b/variables.tf @@ -252,4 +252,10 @@ variable "additional_tags" { default = {} description = "Additional db cluster tags" type = map(string) +} + +variable "ca_cert_identifier" { + type = string + default = "" + description = "The identifier of the CA certificate for the DB cluster" } \ No newline at end of file