Terraform provider for MongoDB Atlas
Terraform provider for MongoDB Atlas.
Please use the official, verified Terraform MongoDB Atlas Provider: -Documentation -GitHub Repo
Follow the instructions to install it as a plugin. After placing it into your plugins directory, run
terraform initto 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
go get github.com/kardianos/govendor
make test
make build