akshaykarle / terraform-provider-mongodbatlas

Terraform provider for MongoDB Atlas
Mozilla Public License 2.0
123 stars 54 forks source link

provider not idempotent? #78

Closed danryu closed 5 years ago

danryu commented 5 years ago

I'm trying to run some terraform that includes provisioning a cluster in a given project/group, and the terraform plan fails as follows:


1 error(s) occurred:

* module.mongoatlas.mongodbatlas_cluster.this: 1 error(s) occurred:

* mongodbatlas_cluster.this: Error creating MongoDB Cluster: MongoDB Atlas: 400 A cluster named foobar  is already present in group 5c76adaaaaaaa3583a2beb0.

Surely for the provider to ensure idempotence it needs to not fail when a required resource already exists?

danryu commented 5 years ago

Sorry, there must have been screwed up in my state or configuration. Provider working idempotently as expected.

You can close the issue 👍 Thanks!