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 Nov 9, 2023

Programatically disable/enable Auto indexing Serverless

We have Serverless instances. We want to be able to programmatically (using atlas api and terraform resource) disable/enable mongo atlas to auto create suggested indexes for given mongo Serverless instance. Currently, it is enabled by default and can be disabled only by toggle in Mongo UI. With programmatically way we can easily disable/enable auto indexing on all our Serverless instances. This is important to us because we want to use only indexes that we create.
  • ADMIN RESPONSE
    Aug 1, 2025
    The ability to programmatically enable/disable automatic indexing on MongoDB Atlas serverless instances via the admin API/terraform resource is now available. For more details, please see the relevant documentation here. * Admin API documentation ( https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Performance-Advisor/operation/setServerlessAutoIndexing ) * Terraform documentation ( https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/data-sources/serverless_instances#auto_indexing )
  • Attach files