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 Submitted
Categories Atlas
Created by Guest
Created on Feb 4, 2025

Collection Resource in Terraform Provider

There's no resource in terraform-provider-mongodbatlas to create a collection, but there is a resource to create a search index, which requires a collection to be created beforehand. This means that the lifecycle of a DB with a search index cannot be managed entirely in Terraform - I have to do something out-of-process to create the collection (e.g. use the MongoDB client). I can't even do this using the Atlas CLI, much to my chagrin.
  • Attach files