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
- Host: GitHub
- URL: https://github.com/terraform-ibm-modules/terraform-ibm-toolkit-mongodb
- Owner: terraform-ibm-modules
- Created: 2020-07-13T20:10:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-07T20:41:17.000Z (5 months ago)
- Last Synced: 2025-02-04T16:50:50.207Z (3 months ago)
- Language: HCL
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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"
}```
##