diff --git a/terraform/020-database/main.tf b/terraform/020-database/main.tf index 5e314f3..613b70d 100644 --- a/terraform/020-database/main.tf +++ b/terraform/020-database/main.tf @@ -8,7 +8,7 @@ resource "random_id" "db_root_pass" { } module "rds" { - source = "github.com/silinternational/terraform-modules//aws/rds/mariadb?ref=8.7.0" + source = "github.com/silinternational/terraform-modules//aws/rds/mariadb?ref=8.8.0" app_name = var.app_name app_env = var.app_env db_name = var.db_name @@ -26,6 +26,7 @@ module "rds" { multi_az = var.multi_az skip_final_snapshot = var.skip_final_snapshot replicate_source_db = var.replicate_source_db + ca_cert_identifier = var.ca_cert_identifier } /* diff --git a/terraform/020-database/vars.tf b/terraform/020-database/vars.tf index eae87cc..15709a5 100644 --- a/terraform/020-database/vars.tf +++ b/terraform/020-database/vars.tf @@ -81,3 +81,8 @@ variable "replicate_source_db" { description = "To create a replica DB in a separate region, specify the source database ARN" default = null } + +variable "ca_cert_identifier" { + type = string + default = "rds-ca-rsa2048-g1" +}