Skip to content

Commit 8df7b14

Browse files
committed
fix: missing module output file
1 parent 7c04de0 commit 8df7b14

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

terraform/modules/database/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ data "aws_caller_identity" "current" {
3030

3131
# creating RDS password in secret-manager
3232
module "db_password" {
33-
source = "../secret"
34-
name_prefix = "${var.project}-${var.environment}-rds-master-password"
35-
type = "random"
33+
source = "../secret"
34+
type = "random"
35+
## note: secret name_prefix has a limitation of 32 characters
36+
name_prefix = "${var.project}-${var.environment}-rds"
3637
}
3738

3839
# RDS does not support secret-manager, have to provide the actual string

terraform/modules/secret/output.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
output "secret_name" {
2+
value = aws_secretsmanager_secret.secret.name
3+
}

0 commit comments

Comments
 (0)