generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
31 lines (27 loc) · 998 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/********************************************************************
This file is used to implement the ROOT module.
*********************************************************************/
resource "ibm_db2" "db2" {
name = var.db2_instance_name
resource_group_id = var.resource_group_id
location = var.region
plan = var.subscription_id == null ? "performance" : "PerformanceSubscription"
service = "dashdb-for-transactions"
high_availability = var.enable_high_availability ? "yes" : "no"
service_endpoints = var.service_endpoints
parameters = {
"oracle_compatibility" : var.enable_oracle_compatibility ? "yes" : "no",
"version" : "12",
"node_type" : var.node_type,
"subscription_id" : var.subscription_id == null ? "" : var.subscription_id
}
timeouts {
create = "720m"
update = "60m"
delete = "30m"
}
}
resource "ibm_resource_tag" "tags" {
resource_id = ibm_db2.db2.crn
tags = var.tags
}