Skip to content

iwoca/terraform-provider-mongodb

 
 

Repository files navigation

Terraform Provider Mongodb

GitHub go.mod Go version GitHub release (latest by date) GitHub GitHub Workflow Status GitHub issues

This repository is a Terraform Mongodb for Terraform.

Requirements

Installation

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the make install command:
git clone https://github.com/iwoca/terraform-provider-mongodb
cd terraform-provider-mongodb
make install

To test locally

1: Start MongoDB

docker-compose -f docker/docker-compose.yml up -d mongo

2: 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 TestAcc

3: Build and use the provider

make install
cd examples
terraform init
terraform plan

About

Terraform provider for mongodb instance (selfhosted, AWS documentDB and cloud instances )

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 90.8%
  • Makefile 4.9%
  • Shell 3.3%
  • Other 1.0%