Kaginari / terraform-provider-mongodb

Terraform provider for mongodb instance (selfhosted, AWS documentDB and cloud instances )
MIT License
24 stars 31 forks source link

Terraform destroy fails due to insufficient permissions #22

Closed krtk6160 closed 2 years ago

krtk6160 commented 2 years ago

I am running bitnami's mongodb helm chart and have been trying to use this provider with it. While the creation of users and roles happens without problems, the destroy for the role fails with the following error:

Error: (Unauthorized) not authorized on admin to execute command { delete: "system.roles", ordered: true, lsid: { id: UUID("e7ac5570-6884-43bb-a195-f1e019065c33") }, $db: "admin" }

Error: (Unauthorized) not authorized on admin to execute command { delete: "system.roles", ordered: true, lsid: { id: UUID("e1faf7ab-eed8-4e37-8345-b48cbd06f6fe") }, $db: "admin" }