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 Completed
Categories Atlas
Created by Guest
Created on Feb 6, 2020

Allow creation of API Keys and their Whitelists via Terraform

Currently it is not possible to create an Organization API Key via terraform and manage its IP Whitelist. This would be a very useful feature for large organizations: https://docs.atlas.mongodb.com/reference/api/apiKeys-orgs-create-one/
  • ADMIN RESPONSE
    Aug 1, 2025
    While this was not added to Terraform, support now exists for MongoDB Atlas Programmatic API key generation within Vault, which due to the sensitive nature of API keys this seemed a better fit for the functionality. HashiCorp Vault 1.4 - https://www.mongodb.com/blog/post/manage-atlas-database-secrets-hashicorp-vault
  • Attach files
  • Guest
    Oct 20, 2022
    Is this a strategic position? We want to use terraform to create Org Member API keys for each project as part of a bootstrapping flow, so we can provide programmatic access for our internal customers to their MongoDB projects. As part of that initial flow, we wanted to create an API Key and store it in our own Secret Manager, and provide IAM for the users to retrieve the data. This is a big disappointment if this is not on the road map to be possibly done through Terraform directly
  • Guest
    Apr 9, 2020
    This functionality is now supported in HashiCorp Vault 1.4 - https://www.mongodb.com/blog/post/manage-atlas-database-secrets-hashicorp-vault
  • Guest
    Feb 12, 2020
    Thank you for the submission.  Agree and we actually have built an integration to manage MongoDB Atlas Programmatic API Keys via HashiCorp Vault.  It will be included in their next release, version 1.4.  Stay tuned for more information as we finalize the release with HashiCorp.