Skip to content

Commit

Permalink
add ca_cert_identifier (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
marciogoda authored Jun 18, 2024
1 parent 3c294ce commit 11cfe33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 11cfe33

Please sign in to comment.