mongodb
cloud-native-toolkit/mongodb/ibm
Terraform module to provision an instance of Databases for MongoDB into the account
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 ``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 resou
| Name | Type | Description | Default |
|---|---|---|---|
| resource_group_name | string | Resource group where the cluster has been provisioned. | required |
| resource_location | string | Geographic location of the resource (e.g. us-south, us-east) | required |
| name_prefix | string | The prefix name for the service. If not provided it will default to the resource | "" |
| role | string | The role of the generated credential (Viewer, Administrator, Operator, Editor) | "Editor" |
| key-protect-key | string | The name of the key in the Key Protect instance | "" |
| key-protect-region | string | The region where the Key Protect instance has been provisioned. If not provided | "" |
| key-protect-resource-group | string | The resource group where the Key Protect instance has been provisioned. If not p | "" |
| key-protect-name | string | The name of the Key Protect instance | "" |
| authorize-kms | bool | Flag indicating that the authorization for MongoDB to read keys in the KMS shoul | false |
| tags | list(string) | Tags that should be applied to the service | [] |
| plan | string | The type of plan the service instance should run under (standard) | "standard" |
port — The port for the database instancedatabase_name — The database name for the database instanceusername — The username for the database instancepassword — The password for the database instanceca_cert — The ca_cert used to sign the TLS certificate for the connection, if applicabletype — The type of the database (mongodb)host — The host name for the database instance