Is there an existing issue for this?
Provider Version
v2.5.0
Terraform Version
v1.12.2
Terraform Edition
Terraform Cloud
Current Behavior
We are new MongoDB Atlas customers.
When I go to create a project, the Terraform provider allows tags with invalid characters.
When I apply the Terraform code, the apply fails with a 400 error explaining that the tags are wrong. But the project is still created.
So now the next time I try to apply the Terraform, it will fail, because a project already exists with the same name.
Terraform configuration to reproduce the issue
resource "mongodbatlas_project" "main" {
name = "my-project"
org_id = "my-org"
tags = {
atag = "invalid.characters/com"
}
}
Steps To Reproduce
- Make a plan to add tags with invalid characters
- Run terraform apply
- Apply will fail
- The project will be created anyway
Logs
Code of Conduct