Company
Date Published
Author
Joe Drumgoole
Word count
851
Language
English
Hacker News points
None

Summary

The MongoDB Atlas CLI script, `mongodbatlas`, is a Python package that automates the process of pausing and resuming Atlas clusters. The script can be installed using pip and comes with a command-line interface (`atlascli`) that allows users to pause and resume clusters with a simple command. To use the script, users need to set up their cluster with a programmatic key and enable IP address whitelisting, which requires storing the public and private keys in environment variables. The `atlascli` command can be used to list organizations, projects, and clusters, as well as pause and resume specific clusters. Note that once a cluster has been resumed, it cannot be paused again for 60 minutes to allow the Atlas service to apply any pending changes or patches.