An open API service indexing awesome lists of open source software.

https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-mongodb

Terraform module to provision an instance of Databases for MongoDB into the account
https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-mongodb

Last synced: about 2 months ago
JSON representation

Terraform module to provision an instance of Databases for MongoDB into the account

Awesome Lists containing this project

README

        

# Databases for MongoDB terraform module

This terraform module will provision an instance of MongoDB into an account. If the key protect values are provided then it will provision the instance using
the provided encryption key.

## Software dependencies

The module depends on the following software components:

### Command-line tools

- terraform - v12
- kubectl

### Terraform providers

- IBM Cloud provider >= 1.17.0

## Module dependencies

This module makes use of the output from other modules:

- Cluster - github.com/ibm-garage-cloud/terraform-ibm-container-platform.git

## Example usage

[Refer Test Cases for more details](test/stages/stage2-mongodb.tf)

```hcl-terraform
module "dev_infrastructure_mongodb" {
source = "github.com/ibm-garage-cloud/terraform-ibm-mongodb.git?ref=v1.0.0"

resource_group_name = module.dev_cluster.resource_group_name
resource_location = module.dev_cluster.region
name_prefix = var.name_prefix
tags = [module.dev_cluster.tag]
key-protect-region = var.key-protect-region
key-protect-name = var.key-protect-name
key-protect-key = var.key-protect-key
authorize-kms = var.authorize-kms == "true"
}

module "dev_tools_mongodb" {
source = "./module"

resource_group_name = var.resource_group_name
resource_location = var.region
name_prefix = "${var.name_prefix}_2"
key-protect-region = var.key-protect-region
key-protect-name = var.key-protect-name
key-protect-key = var.key-protect-key
authorize-kms = var.authorize-kms == "true"
}

```
##