akshaykarle / terraform-provider-mongodbatlas

Terraform provider for MongoDB Atlas
Mozilla Public License 2.0
123 stars 54 forks source link
mongodb mongodb-atlas terraform terraform-provider

terraform-provider-mongodbatlas

Build Status GitHub release codecov [GitHub downloads]()

Terraform provider for MongoDB Atlas.

IMPORTANT NOTE - This provider is no longer under development.

Please use the official, verified Terraform MongoDB Atlas Provider: -Documentation -GitHub Repo

Requirements

Installing the Provider

Follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

Usage

# Configure the MongoDB Atlas Provider
provider "mongodbatlas" {
  username = "${var.mongodb_atlas_username}"
  api_key = "${var.mongodb_atlas_api_key}"
}

# Create a Cluster
resource "mongodbatlas_cluster" "test" {
  # ...
}

Also look at the example under /examples.

Building the Provider

Clone and build the repository

go get github.com/akshaykarle/terraform-provider-mongodbatlas
make build

Updating the Provider

go get -u github.com/akshaykarle/terraform-provider-mongodbatlas
make build

Contributing