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 Mar 31, 2020

Adding indexes using terraform

Ability to add indexes after new clusters are created using Terraform and data has been loaded. It will help in more automation and auto recovery.
  • Attach files
  • Guest
    Jan 24, 2024
    Seems like this is dependent on the missing delete / edit index endpoints in the Administration API as Melissa said. Voting here too would help bring it to attention: https://feedback.mongodb.com/forums/924145-atlas/suggestions/40128403-ability-to-drop-indexes-via-api
  • Guest
    Apr 4, 2023
    This would be nice to have for us as well. It is not necessarily great practice to separate the creation of indexes as part of the CICD process rather than having it incorporated in the terraform itself.
  • Guest
    Dec 15, 2022
    The lack of this feature is what prevents us from recommending that we migrate any more workloads to Atlas. Infrastructure as code is a best practice and the lack of support is a deal-breaker.
  • Guest
    Sep 22, 2022
    Stefan, there is still no underlying endpoints in the Atlas Admin API that allow full control of the index lifecycle so we have no plans at this time to add index management to Terraform (there is one to allow only creation of an index in a rolling fashion but we would be unable to update or delete that index via the admin API). Indexes can be created via scripts or the shell as part of your CI/CD process. If this changes we will update the status of this feedback. Thank you, Melissa
  • Guest
    Sep 21, 2022
    Hi, is there any news on this? I guess it would be good to have it as infrastructure as code, due to best practices for index management!