We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c04de0 commit 8df7b14Copy full SHA for 8df7b14
terraform/modules/database/main.tf
@@ -30,9 +30,10 @@ data "aws_caller_identity" "current" {
30
31
# creating RDS password in secret-manager
32
module "db_password" {
33
- source = "../secret"
34
- name_prefix = "${var.project}-${var.environment}-rds-master-password"
35
- type = "random"
+ source = "../secret"
+ type = "random"
+ ## note: secret name_prefix has a limitation of 32 characters
36
+ name_prefix = "${var.project}-${var.environment}-rds"
37
}
38
39
# RDS does not support secret-manager, have to provide the actual string
terraform/modules/secret/output.tf
@@ -0,0 +1,3 @@
1
+output "secret_name" {
2
+ value = aws_secretsmanager_secret.secret.name
3
+}
0 commit comments