generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
66 lines (55 loc) · 2.25 KB
/
variables.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
########################################################################################################################
# Input Variables
########################################################################################################################
variable "db2_instance_name" {
type = string
description = "Name to give to the DB2 instance being provisioned"
}
variable "subscription_id" {
type = string
description = "Value of the subscription ID to use with the subscription plan of DB2"
default = null
sensitive = true
}
variable "resource_group_id" {
type = string
description = "ID of resource group to provision DB2 instance in"
}
variable "region" {
type = string
description = "Region to provision the DB2 instance"
default = "us-south"
}
variable "service_endpoints" {
type = string
description = "Service endpoints for the DB2 instance, valid values are `public`, `private`, or `public-and-private`"
default = "public"
validation {
error_message = "`service_endpoints` must be one of: `public`, `private`, or `public-and-private`."
condition = contains(["public", "private", "public-and-private"], var.service_endpoints)
}
}
variable "enable_high_availability" {
type = bool
description = "Whether to enable high availability on the DB2 instance"
default = false
}
variable "enable_oracle_compatibility" {
type = bool
description = "Whether to enable Oracle compatibility on the DB2 instance"
default = false
}
variable "node_type" {
type = string
description = "The node type of the DB2 instance, supported values are `bx2.4x16`, `bx2.8x32`, `bx2.16x64`, `bx2.32.128`, `bx2.48x192`, `mx2.4x32`, `mx2.16x128`, or `mx2.128x1024`"
default = "bx2.4x16"
validation {
error_message = "`node_type` must be one of: `nil`, `bx2.4x16`, `bx2.8x32`, `bx2.16x64`, `bx2.32x128`, `bx2.48x192`, `mx2.4x32`, `mx2.16x128`, `mx2.128x1024`"
condition = contains(["nil", "bx2.4x16", "bx2.8x32", "bx2.16x64", "bx2.32x128", "bx2.48x192", "mx2.4x32", "mx2.16x128", "mx2.128x1024"], var.node_type)
}
}
variable "tags" {
type = list(string)
description = "Tags applied to the DB2 resource instance"
default = []
}