Terraform Module to allow for unique dbpassword secret names (#9633)

This commit is contained in:
Robert Fairburn
2023-02-02 12:42:08 -06:00
committed by GitHub
parent a864c52e8f
commit a027a2a893
+2 -2
View File
@@ -6,7 +6,7 @@ module "byo-db" {
address = module.rds.cluster_endpoint
database = "fleet"
user = "fleet"
password_secret_arn = module.secrets-manager-1.secret_arns["database-password"]
password_secret_arn = module.secrets-manager-1.secret_arns["${var.rds_config.name}-database-password"]
}
redis = {
address = "${module.redis.endpoint}:${module.redis.port}"
@@ -100,7 +100,7 @@ module "secrets-manager-1" {
version = "0.6.1"
secrets = {
database-password = {
"${var.rds_config.name}-database-password" = {
description = "fleet-database-password"
recovery_window_in_days = 0
secret_string = module.rds.cluster_master_password