Skip to content

terraform-ibm-modules/terraform-ibm-toolkit-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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"
}

About

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

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages