Pausing MongoDB Atlas Cluster with option of start/end time
There is a parameter available for cluster resource to pause the cluster. With this parameter, we have to flip the status from pause to unpause whenever needed.
I am looking for separate resource (like maintenance window) where one can configure to pause the cluster for specific window (start/end time)
Example: I want to pause all non-prod clusters by Friday evening 5 PM EST and resume the cluster 7 AM EST. With trigger it is possible, but we do have hundreds of deployments. It would be great if we have resource where customer can specify their own timing to pause and unpause.
The intention to have this feature is to save cost.
Via api call we can pause the cluster, we do not want customers to use/know api calls to make changes. Our standard is to use terraform to deploy/change the resources. When customer is aware of api calls to make changes, terraform state will be out of sync with actual resources, if they make changes to other parameters. Our goal is to make it simple to pause/unpause the cluster via resource.
AdminZuhair (Admin, MongoDB) commented
Just confirming this feature request isn't on our roadmap as of yet. Suggest explore setting up triggers with Terraform and if there are still too many hard edges happy to chat live to explore alternatives as well. Thanks again for sharing feedback.
Thank you Suresh for the feedback. As you note, the best way to schedule pausing like this within Atlas is to use Atlas Triggers. You can set it to make the API call to pause/unpause. Have you tried setting up the trigger with Terraform to make it easier?