Ability to create/update a temporary Database user using terraform
Hi
Presently, we can only create permanent database users via Terraform Modules. The creation of temporary DB users is only allowed through the UI or by consuming MongoDb Atlas's APIs. In addition, the "deleteAfterDate" property is only applicable for a temporary user already existent. The point is to avoid using "null_resource" and "local-exec" in our Terraform Modules.
-
Hi Sadok, Thank you for the submission. We've intentionally not included this feature in our provider as state management of a temporary resource can prove problematic in Terraform. We have, however, created a secret engine for managing Atlas database users with HashiCorp vault (included in the Vault binary) that allows for programmatic management of users with a lease that many find inline with their security requirements. Thank you, Melissa