This repository is a Terraform Mongodb for Terraform.
- Clone the repository
- Enter the repository directory
- Build the provider using the
make installcommand:
git clone https://github.com/iwoca/terraform-provider-mongodb
cd terraform-provider-mongodb
make install1: Start MongoDB
docker-compose -f docker/docker-compose.yml up -d mongo2: Run acceptance tests
export MONGODB_HOST=localhost
export MONGODB_PORT=27017
export MONGODB_USERNAME=root
export MONGODB_PASSWORD=root
export TF_ACC=1
go test -v ./mongodb/ -run TestAcc3: Build and use the provider
make install
cd examples
terraform init
terraform plan