We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7532fa commit 402f8a7Copy full SHA for 402f8a7
terraform-modules/aws/mongodb-atlas-users/main.tf
@@ -9,7 +9,7 @@ terraform {
9
}
10
11
resource "mongodbatlas_database_user" "admin" {
12
- username = "admin"
+ username = database_username
13
password = var.create_aws_secret ? aws_secretsmanager_secret_version.this[0].secret_string : var.user_password
14
project_id = var.mongodbatlas_projectid
15
auth_database_name = "admin"
terraform-modules/aws/mongodb-atlas-users/variables.tf
@@ -46,3 +46,9 @@ variable "tags" {
46
description = "A list of Tags"
47
type = map(any)
48
49
+
50
+variable "database_username" {
51
+ description = "The username to create"
52
+ type = string
53
+ default = "admin"
54
+}
0 commit comments