This module creates a DB2 instance on IBM Cloud
module "db2" {
source = "terraform-ibm-modules/db2-cloud/ibm"
version = "X.Y.Z" # Replace "X.Y.Z" with a release version to lock into a specific release
db2_instance_name = "my-db2-instance"
resource_group_id = "asdf1234"
service_endpoints = "public-and-private"
enable_high_availability = true
enable_oracle_compatibility = false
node_type = "bx2.4x16"
tags = ["tag1", "tag2"]
}You need the following permissions to run this module:
- Service
- dashdb-for-transactions service
Editorplatform accessManagerservice access
- dashdb-for-transactions service
| Name | Version |
|---|---|
| terraform | >= 1.9.0 |
| ibm | >= 1.79.0, < 2.0.0 |
No modules.
| Name | Type |
|---|---|
| ibm_db2.db2 | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| db2_instance_name | The name of the Db2 instance to create. | string |
n/a | yes |
| enable_high_availability | Whether to enable high availability for the Db2 instance. | bool |
false |
no |
| enable_oracle_compatibility | Whether to enable compatibility with Oracle for the Db2 instance. | bool |
false |
no |
| node_type | The node type of the Db2 instance. Possible values are bx2.1x4, bx2.4x16, bx2.8x32, bx2.16x64, bx2.32.128, bx2.48x192, mx2.4x32, mx2.16x128, or mx2.128x1024. |
string |
"bx2.4x16" |
no |
| region | The region where the Db2 instance is created. | string |
"us-south" |
no |
| resource_group_id | The ID of the resource group that contains the Db2 instance. | string |
n/a | yes |
| service_endpoints | Service endpoints for the Db2 instance. Possible values are public, private, or public-and-private. |
string |
"public" |
no |
| subscription_id | Value of the subscription ID to use with the subscription plan for Db2. | string |
null |
no |
| tags | The list of resource tags to associate with your Db2 instance. | list(string) |
[] |
no |
| Name | Description |
|---|---|
| crn | CRN of the Db2 instance. |
| dashboard_url | Dashboard URL of the Db2 instance. |
| name | Name of the Db2 instance. |
You can report issues and request features for this module in GitHub issues in the module repo. See Report an issue or request a feature.
To set up your local development environment, see Local development setup in the project documentation.