akshaykarle / terraform-provider-mongodbatlas

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

Inform Terraform if Cluster resource has been removed #29

Closed whyman closed 6 years ago

whyman commented 6 years ago

Fixes #28

whyman commented 6 years ago

Any news?

akshaykarle commented 6 years ago

Thanks for the PR @v00d00. I'm wondering if all the other resources should have a similar behavior? Also, not sure what the other providers do when they can't find a resource. I usually have just run terraform state rm in the past when I deleted something manually.

whyman commented 6 years ago

Usually the provider notices the resource has gone and creates you a new one, that's the behaviour of the AWS provider at least.

mmindenhall commented 6 years ago

@akshaykarle, yes, I think all of the resources should behave this way. I just ran into this issue with a DB user that we had deleted, and found the provider didn't just re-create it.

akshaykarle commented 6 years ago

Okay, so i will merge @v00d00 it in, but let's also do it for the other resources.