Skip to content

dhoeld/terraform-provider-mongodbatlas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-provider-mongodbatlas

Build Status GitHub release GitHub downloads

Terraform provider for MongoDB Atlas.

Requirements

  • Terraform 0.11.x
  • Go 1.10 (to build the provider plugin)

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 repository to: $GOPATH/src/github.com/akshaykarle/terraform-provider-mongodbatlas

$ mkdir -p $GOPATH/src/github.com/akshaykarle; cd $GOPATH/src/github.com/akshaykarle
$ git clone [email protected]:akshaykarle/terraform-provider-mongodbatlas

Enter the provider directory and build the provider

$ cd $GOPATH/src/github.com/akshaykarle/terraform-provider-mongodbatlas
$ make build

NOTE

The mongodbatlas_project and mongodbatlas_container resources do not destroy the project or container (vpc) in mongo atlas. This due to limitation of the mongo atlas API as it doesn't support deleting these resources.

About

Terraform provider for MongoDB Atlas

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 91.7%
  • Makefile 4.7%
  • Shell 3.6%