hpdbaas-mongodb
cloud-native-toolkit/hpdbaas-mongodb/ibm
Terraform module to provision a Hyper Protect DB as a Service MongoDB instance
HPDBAAS-MongoDB module Terraform module to provision an instance of HPDBAAS-MongoDB in cloud account. Software dependencies The module depends on the following software components: Command-line tools - terraform - v12 - kubectl Terraform providers - IBM Cloud provider >= 1.5.3 Module dependencies None Example usage ``hcl-terraform module "dev_infrastructure_hpdbaas_mongodb" { source = "github.com/ibm-garage-cloud/terraform-ibm-hpdbaas-mongodb.git?ref=v1.0.0" resource_group_name = var.resource_group_name resource_location = var.region name_prefix = "${var.name_prefix}_2" hpcs-region = var.hpcs-region hpcs-name = var.hpcs-name hpcs-key = var.hpcs-key authorize-kms = var.authorize-kms == "true" } ``
| Name | Type | Description | Default |
|---|---|---|---|
| ibmcloud_api_key | string | The api key for IBM Cloud access | required |
| cluster_name | string | The name of the database cluster | required |
| resource_group_name | string | Resource group where the cluster has been provisioned. | required |
| password | string | The password of database admin(15 characters minimum, at least one uppercase cha | required |
| region | string | Geographic location of the resource (e.g. us-south, us-east) | required |
| admin_name | string | The name of the database admin | required |
| label | string | The label used to build the database name, along with the name_prefix | "hpdbaas-mongodb" |
| role | string | The role of the generated credential (Viewer, Administrator, Operator, Editor) | "Editor" |
| hpcs_instance_id | string | The id of the hpcs instance | "" |
| plan | string | The type of plan the service instance should run under (mongodb-free, mongodb-fl | "mongodb-free" |
| hpcs_key | string | The id of the key in the hpcs instance | "" |
| memory | string | The name of the database admin | "3GiB" |
| tags | list(string) | Tags that should be applied to the service | [] |
| name_prefix | string | The prefix name for the service. If not provided it will default to the resource | "" |
| private_endpoint | string | Flag indicating that the service should be created with private endpoints | "true" |
| cpu | string | The name of the database admin | "1" |
| provision | bool | Flag indicating that the instance should be provisioned. If false then it assume | true |
| storage | string | The name of the database admin | "5GiB" |