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 Oct 16, 2019

Add Terraform resource for custom database roles

Could we have a Terraform resource for creating custom database roles?
  • ADMIN RESPONSE
    Aug 1, 2025
    This has been released in version 0.4.0 https://www.terraform.io/docs/providers/mongodbatlas/r/custom_db_role.html More info on 0.4.0: https://www.mongodb.com/blog/post/new-major-version-of-terraform-mongodb-atlas-provider Thank you to community member Michał Paluchowski (https://github.com/mpaluchowski) for contributing to this resource!
  • Attach files
  • Guest
    Oct 23, 2019
    Hi Andrew. We need that resource to be able to cover all of our Atlas configuration with Terraform. Right now, we need to set the roles manually, which isn't a huge pain, but in an infrastructure where we're nearing 1000 resources under management, we'd really rather have code keep track of it instead of people. I actually tried submitting a pull request for this, following your encouragement, but your colleague, Melissa Plunkett, wrote back that you are "working on our internal process/procedure so it may take a little time", so I don't know what will be quicker -- my submission or this feature request.
  • Guest
    Oct 17, 2019
    Hi Michal, Thanks for flagging this. Can you add any color to how important this is for you? We are looking to prioritize amongst the various resources that could be extended next. By the way, the Terraform provider is open source and open to contributors if you'd be interested! Thanks a lot -Andrew