MongoDB Atlas

The MongoDB Atlas provider for Pulumi can be used to provision any of the resources available for MongoDB Atlas. The MongoDB Atlas provider must be configured with credentials to deploy and update resources in MongoDB Atlas.
See the full API documentation for complete details of the available MongoDB Atlas provider APIs.
Setup
The MongoDB Atlas provider supports several options for providing access to MongoDB Atlas credentials. See the MongoDB Atlas setup page for details.
Example
const mongodbatlas = require("@pulumi/mongodbatlas")
const project = new mongodbatlas.Project("my-demo-project", {
orgId: "12345",
});
import * as mongodbatlas from "@pulumi/mongodbatlas";
const project = new mongodbatlas.Project("my-demo-project", {
orgId: "12345",
});
import pulumi_mongodbatlas as mongodbatlas
project = mongodbatlas.Project("my-demo-project", org_id="12345")
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
mongodbatlas "github.com/pulumi/pulumi-mongodbatlas/sdk/v2/go/mongodbatlas"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
project, err := mongodb.NewProject(ctx, "my-demo-project", &mongodb.ProjectArgs{
OrgId: pulumi.String("12345"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.Mongodbatlas;
class Program
{
static Task Main() =>
Deployment.Run(() => {
project = new Project("my-demo-project", new ProjectArgs{
OrgId = "12345",
});
});
}
Libraries
The following packages are available in packager managers:
- JavaScript/TypeScript:
@pulumi/mongodbatlas
- Python:
pulumi-mongodbatlas
- Go:
github.com/pulumi/pulumi-mongodbatlas/sdk/v2/go/mongodbatlas
- .NET:
Pulumi.Mongodbatlas
The MongoDB Atlas provider is open source and available in the pulumi/pulumi-mongodbatlas repo.