You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://cloud.mongodb.com/api/atlas/v2/groups/5f9ae09f623d2e2943ee8dd7/databaseUsers
POST: HTTP [40](https://github.com/tag-trade-repository/mongodb-atlas-org/actions/runs/7574016372/job/20627877078#step:11:41)0 Bad Request (Error code: "INVALID_ATTRIBUTE") Detail: Invalid
attribute roleName specified. Reason: Bad Request. Params: [roleName]
Crash Output
Initializing the backend...
Initializing provider plugins...
- Reusing previous version of mongodb/mongodbatlas from the dependency lock file
- Reusing previous version of hashicorp/random from the dependency lock file
- Using previously-installed mongodb/mongodbatlas v1.14.0
- Using previously-installed hashicorp/random v3.6.0
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
random_password.default: Refreshing state... [id=none]
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# mongodbatlas_database_user.developer[0] will be created
+ resource "mongodbatlas_database_user" "developer" ***
+ auth_database_name = "admin"
+ aws_iam_type = "NONE"
+ id = (known after apply)
+ ldap_auth_type = "NONE"
+ oidc_auth_type = "NONE"
+ password = (sensitive value)
+ project_id = "5f9ae09f623d2e[29](https://github.com/tag-trade-repository/mongodb-atlas-org/actions/runs/7574016372/job/20627877078#step:11:30)43ee8dd7"
+ username = "user_caiojbm"
+ x509_type = "NONE"
+ labels ***
+ key = "Developer"
+ value = "true"
***
+ labels ***
+ key = "Environment"
+ value = "production"
***
+ roles ***
+ database_name = "admin"
+ role_name = "readAnyDatabase"
***
+ scopes ***
+ name = "eng-prd-mas-db-mongo-2[30](https://github.com/tag-trade-repository/mongodb-atlas-org/actions/runs/7574016372/job/20627877078#step:11:31)-01"
+ type = "CLUSTER"
***
+ scopes ***
+ name = "mgo-prd-bil"
+ type = "CLUSTER"
***
+ scopes ***
+ name = "mgo-prd-tmp-bil"
+ type = "CLUSTER"
***
***
Plan: 1 to add, 0 to change, 0 to destroy.
mongodbatlas_database_user.developer[0]: Creating...
Error: error during database user creation
with mongodbatlas_database_user.developer[0],
on main.tf line 39, in resource "mongodbatlas_database_user" "developer":
39: resource "mongodbatlas_database_user" "developer" ***
https://cloud.mongodb.com/api/atlas/v2/groups/5f9ae09f623d2e2943ee8dd7/databaseUsers
POST: HTTP [40](https://github.com/tag-trade-repository/mongodb-atlas-org/actions/runs/7574016372/job/20627877078#step:11:41)0 Bad Request (Error code: "INVALID_ATTRIBUTE") Detail: Invalid
attribute roleName specified. Reason: Bad Request. Params: [roleName]
time=2024-01-18T18:05:[55](https://github.com/tag-trade-repository/mongodb-atlas-org/actions/runs/7574016372/job/20627877078#step:11:56)Z level=error msg=terraform invocation failed in /home/gitrunner/actions-runner/_work/mongodb-atlas-org/mongodb-atlas-org/terraform/resources/database-users/production/developers/caiojbm/.terragrunt-cache/O4lWeAg4FIkSh4zlrLTslVS8jDI/pzZ6kKKOog-nM-3feLfydekfdws/modules/nominal-users prefix=[terraform/resources/database-users/production/developers/caiojbm]
time=2024-01-18T18:05:55Z level=error msg=1 error occurred:
* [/home/gitrunner/actions-runner/_work/mongodb-atlas-org/mongodb-atlas-org/terraform/resources/database-users/production/developers/caiojbm/.terragrunt-cache/O4lWeAg4FIkSh4zlrLTslVS8jDI/pzZ6kKKOog-nM-3feLfydekfdws/modules/nominal-users] exit status 1
Error: Process completed with exit code 1.
Additional Context
Could you guys help me on that?
Thanks,
Cristiana Santos
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue! Please make sure you've followed our guidelines when opening the issue. In short, to help us reproduce the issue we need:
Terraform configuration file used to reproduce the issue
Terraform log files from the run where the issue occurred
Terraform Atlas provider version used to reproduce the issue
Terraform version used to reproduce the issue
Confirmation if Terraform OSS, Terraform Cloud, or Terraform Enterprise deployment
The ticket CLOUDP-224238 was created for internal tracking.
Hi, there.
I'm trying to run a terraform code (that we usually run to create new users) and it's returning error.
Variable:
main:
My terragrunt code (that calls my terraform code):
Terraform CLI and Terraform MongoDB Atlas Provider Version
Terraform v1.6.6
provider:
Steps to Reproduce
Expected Behavior
the apply should create the user
Actual Behavior
Got an error
Crash Output
Additional Context
Could you guys help me on that?
Thanks,
Cristiana Santos
The text was updated successfully, but these errors were encountered: