Terraform provider for MongoDB Atlas.
Follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init
to initialize it.
# 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.
Clone and build the repository
go get github.com/akshaykarle/terraform-provider-mongodbatlas
make build
go get -u github.com/akshaykarle/terraform-provider-mongodbatlas
make build
- Install project dependencies:
go get github.com/kardianos/govendor
- Run tests:
make test
- Build the binary:
make build