Closed Kikivsantos closed 1 month ago
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:
The ticket CLOUDP-250696 was created for internal tracking.
Is there an existing issue for this?
Provider Version
latest
Terraform Version
latest
Terraform Edition
Terraform Open Source (OSS)
Current Behavior
Error when running the apply (The plan goes ok)
Terraform configuration to reproduce the issue
variable.tf
terragrunt.hcl:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
Terraform will perform the following actions:
mongodbatlas_custom_db_role.default will be created
resource "mongodbatlas_custom_db_role" "default" {
id = (known after apply)
project_id = "5f6f9959a55ed91e80e4f7d1"
role_name = "writedml"
actions {
action = "FIND"
resources {
(2 unchanged attributes hidden)
} }
actions {
action = "INSERT"
resources {
(2 unchanged attributes hidden)
} }
actions {
action = "UPDATE"
resources {
(2 unchanged attributes hidden)
} }
actions {
action = "REMOVE"
resources {
(2 unchanged attributes hidden)
} }
actions {
action = "BYPASS_DOCUMENT_VALIDATION"
resources {
(2 unchanged attributes hidden)
} }
actions {
action = "USE_UUID"
resources {
(2 unchanged attributes hidden)
} } }
Plan: 1 to add, 0 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
Terraform will perform the following actions:
mongodbatlas_custom_db_role.default will be created
resource "mongodbatlas_custom_db_role" "default" ***
id = (known after apply)
project_id = "5f6f9959a55ed91e80e4f7d1"
role_name = "writedml"
actions ***
action = "FIND"
resources ***
(2 unchanged attributes hidden)
actions ***
action = "INSERT"
resources ***
(2 unchanged attributes hidden)
actions ***
action = "UPDATE"
resources ***
(2 unchanged attributes hidden)
actions ***
action = "REMOVE"
resources ***
(2 unchanged attributes hidden)
actions ***
action = "BYPASS_DOCUMENT_VALIDATION"
resources ***
(2 unchanged attributes hidden)
actions ***
action = "USE_UUID"
resources ***
(2 unchanged attributes hidden)
Plan: 1 to add, 0 to change, 0 to destroy. mongodbatlas_custom_db_role.default: Creating...
Error: error creating custom db role: https://cloud.mongodb.com/api/atlas/v2/groups/5f6f9959a[55](https://github.com/tag-trade-repository/mongodb-atlas-org/actions/runs/9229813698/job/25396776713#step:11:56)ed91e80e4f7d1/customDBRoles/roles POST: HTTP 400 Bad Request (Error code: "INVALID_DATABASE_NAME") Detail: Invalid database name specified: ,,,,,. Reason: Bad Request. Params: [,,,,,]
with mongodbatlas_custom_db_role.default, on main.tf line 5, in resource "mongodbatlas_custom_db_role" "default": 5: resource "mongodbatlas_custom_db_role" "default" ***
time=2024-05-24T20:56:12Z level=error msg=Terraform invocation failed in /home/gitrunner/actions-runner/_work/mongodb-atlas-org/mongodb-atlas-org/terraform/resources/projects/develop/custom-roles/writedml/.terragrunt-cache/T9e7NUAPeSVEtRyMVp-H2ciJjD0/pzZ6kKKOog-nM-3feLfydekfdws/modules/custom-roles prefix=[terraform/resources/projects/develop/custom-roles/writedml] time=2024-05-24T20:56:12Z level=error msg=1 error occurred:
Logs
No response
Code of Conduct