Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Will Not Implement
Categories Atlas
Created by Guest
Created on Dec 10, 2020

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.
  • Attach files
  • Guest
    Dec 11, 2020
    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