Skip to content

Commit

Permalink
feat(db): add ca certificate field for rds
Browse files Browse the repository at this point in the history
Signed-off-by: Orla Dunlop <[email protected]>
  • Loading branch information
odunlop committed Aug 14, 2024
1 parent 374930d commit 01ae0e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/database/rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ resource "aws_rds_cluster_instance" "cluster" {
cluster_identifier = aws_rds_cluster.cluster.id
instance_class = var.database.instance_type
apply_immediately = var.instance_apply_immediately
ca_cert_identifier = var.ca_certificate_identifier
tags = merge(var.tags, { Name = "${var.name}-db" })

lifecycle {
Expand Down
6 changes: 6 additions & 0 deletions modules/database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,9 @@ variable "tags" {
type = map(string)
default = {}
}

variable "ca_certificate_identifier" {
description = "(Optional) The CA certificate identifier to use for the DB cluster's server certificate."
type = string
default = "rds-ca-rsa2048-g1"
}

0 comments on commit 01ae0e5

Please sign in to comment.