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 Jul 23, 2021

Add possibility to invite api key(s) to newly created projects

For different types of automation, api key(s) must be added to project(s). It would be helpful if it could be possible to add existing api key(s) to new projects using `mongodbatlas\_project` terraform resource, example: resource "mongodbatlas_project" "test" { name = "project-name" org\_id = "" teams { team\_id = "5e0fa8c99ccf641c722fe645" role\_names = ["GROUP\_OWNER"] } api\_key { public\_key = "xyzxyzxy" role\_names = ["GROUP\_READ\_ONLY"] } }
  • ADMIN RESPONSE
    Aug 1, 2025
    This has been added as of version 1.2.0, released today.  See https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/project#api_key_id ( https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/project#api_key_id ) for more details.  Thank you!
  • Attach files