mongodbatlas logo
MongoDB Atlas v3.7.1, Mar 10 23

MongoDB Atlas: Installation & Configuration

The Pulumi MongoDB Atlas provider uses the MongoDB Atlas SDK to manage and provision resources.


The MongoDB Atlas provider is available as a package in all Pulumi languages:

Configuring Credentials

Pulumi relies on the MongoDB Atlas SDK to authenticate requests from your computer to MongoDB Atlas. Your credentials are never sent to The Pulumi MongoDB Atlas Provider needs to be configured with MongoDB Atlas credentials before it can be used to manage resources.

In order to communicate your configuration details to Pulumi:

  1. Set the environment variables MONGODB_ATLAS_PUBLIC_KEY and MONGODB_ATLAS_PRIVATE_KEY:

  2. Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

    $ pulumi config set mongodbatlas:publicKey XXXXXXXXXXXXXX --secret
    $ pulumi config set mongodbatlas:privateKey YYYYYYYYYYYYYY --secret

If you are going to set mongodbatlas:privateKey and mongodbatlas:publicKey, please remember to pass --secret so that they is properly encrypted. The complete list of configuration parameters is in the MongoDB Atlas provider README.