Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(db): add ca certificate field for rds #112

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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"
}
Loading