You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 17, 2025. It is now read-only.
description="Allocated memory per member. For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
35
-
default=4096
34
+
description="Allocated number of members. Members can be scaled up but not down."
35
+
default=3
36
+
validation {
37
+
condition=var.members>=3&& var.members<=20
38
+
error_message="Members count must be between 3 and 20(inclusive)"
39
+
}
40
+
}
41
+
42
+
variable"member_cpu_count" {
43
+
type=number
44
+
description="Allocated dedicated CPU per member. Minimum number of CPU allowed is 3 . For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
45
+
default=3
36
46
}
37
47
38
48
variable"member_disk_mb" {
@@ -41,17 +51,35 @@ variable "member_disk_mb" {
41
51
default=20480
42
52
}
43
53
44
-
variable"member_cpu_count" {
54
+
variable"member_host_flavor" {
55
+
type=string
56
+
description="Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor)."
57
+
default=null
58
+
}
59
+
60
+
variable"member_memory_mb" {
45
61
type=number
46
-
description="Allocated dedicated CPU per member. Minimum number of CPU allowed is 3 . For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
47
-
default=3
62
+
description="Allocated memory per member. For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
63
+
default=4096
48
64
}
49
65
50
-
variable"member_host_flavor" {
66
+
variable"admin_pass" {
51
67
type=string
52
-
description="Allocated host flavor per member. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/database#host_flavor)."
68
+
description="The password for the database administrator. If the admin password is null then the admin user ID cannot be accessed. More users can be specified in a user block."
53
69
default=null
54
-
# Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here.
70
+
sensitive=true
71
+
}
72
+
73
+
variable"users" {
74
+
type=list(object({
75
+
name =string
76
+
password =string# pragma: allowlist secret
77
+
type =string# "type" is required to generate the connection string for the outputs.
78
+
role =optional(string)
79
+
}))
80
+
default=[]
81
+
sensitive=true
82
+
description="A list of users that you want to create on the database. Multiple blocks are allowed. The user password must be in the range of 10-32 characters. Be warned that in most case using IAM service credentials (via the var.service_credential_names) is sufficient to control access to the Enterprise Db instance. This blocks creates native enterprise database users, more info on that can be found here https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-user-management&interface=api"
description="Allocated number of members. Members can be scaled up but not down."
71
-
default=3
72
-
validation {
73
-
condition=var.members>=3&& var.members<=20
74
-
error_message="Members count must be between 3 and 20(inclusive)"
75
-
}
76
-
}
77
-
78
96
variable"resource_tags" {
79
97
type=list(string)
80
98
description="Optional list of tags to be added to the Enterprise DB instance."
@@ -105,16 +123,9 @@ variable "configuration" {
105
123
default=null
106
124
}
107
125
108
-
variable"kms_key_crn" {
109
-
type=string
110
-
description="The root key CRN of the Hyper Protect Crypto Service (HPCS) to use for disk encryption."
111
-
}
112
-
113
-
variable"skip_iam_authorization_policy" {
114
-
type=bool
115
-
description="Set to true to skip the creation of an IAM authorization policy that permits all Enterprise database instances in the resource group to read the encryption key from the Hyper Protect Crypto Services instance. The HPCS instance is passed in through the var.existing_kms_instance_guid variable."
description="The password for the database administrator. If the admin password is null then the admin user ID cannot be accessed. More users can be specified in a user block."
149
-
sensitive=true
150
-
default=null
151
-
}
152
-
153
-
variable"users" {
154
-
type=list(object({
155
-
name =string
156
-
password =string# pragma: allowlist secret
157
-
type =string# "type" is required to generate the connection string for the outputs.
158
-
role =optional(string)
159
-
}))
160
-
default=[]
161
-
sensitive=true
162
-
description="A list of users that you want to create on the database. Multiple blocks are allowed. The user password must be in the range of 10-32 characters. Be warned that in most case using IAM service credentials (via the var.service_credential_names) is sufficient to control access to the Enterprise Db instance. This blocks creates native enterprise database users, more info on that can be found here https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-user-management&interface=api"
description="The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty."
168
-
default=null
163
+
description="The root key CRN of the Hyper Protect Crypto Service (HPCS) to use for disk encryption."
description="Set to true to skip the creation of an IAM authorization policy that permits all Enterprise database instances in the resource group to read the encryption key from the Hyper Protect Crypto Services instance. The HPCS instance is passed in through the var.existing_kms_instance_guid variable."
176
+
default=false
177
+
}
178
+
179
+
variable"existing_kms_instance_guid" {
180
+
description="The GUID of the Hyper Protect Crypto Services instance."
description="The CRN of a backup resource to restore from. The backup is created by a database deployment with the same service ID. The backup is loaded after provisioning and the new deployment starts up that uses that data. A backup CRN is in the format crn:v1:<…>:backup:. If omitted, the database is provisioned empty."
description="Allocated memory per-member. See the following doc for supported values: https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
43
-
default=4096
45
+
description="Allocated number of members. Members can be scaled up but not down."
46
+
default=3
44
47
# Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here.
45
48
}
46
49
47
-
variable"member_disk_mb" {
50
+
variable"member_cpu_count" {
48
51
type=number
49
-
description="Allocated disk per member. For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
50
-
default=20480
52
+
description="Allocated dedicated CPU per member. Minimum number of CPU allowed is 3. For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
53
+
default=3
51
54
# Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here.
52
55
}
53
56
54
-
variable"member_cpu_count" {
57
+
variable"member_disk_mb" {
55
58
type=number
56
-
description="Allocated dedicated CPU per member. Minimum number of CPU allowed is 3. For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
57
-
default=3
59
+
description="Allocated disk per member. For more information, see https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
60
+
default=20480
58
61
# Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here.
# Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here.
66
69
}
67
70
71
+
variable"member_memory_mb" {
72
+
type=number
73
+
description="Allocated memory per-member. See the following doc for supported values: https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-resources-scaling"
74
+
default=4096
75
+
# Validation is done in the Terraform plan phase by the IBM provider, so no need to add extra validation here.
76
+
}
77
+
78
+
variable"admin_pass" {
79
+
type=string
80
+
description="The password for the database administrator. If the admin password is null then the admin user ID cannot be accessed. More users can be specified in a user block."
81
+
default=null
82
+
sensitive=true
83
+
}
84
+
85
+
variable"users" {
86
+
type=list(object({
87
+
name =string
88
+
password =string# pragma: allowlist secret
89
+
type =string# "type" is required to generate the connection string for the outputs.
90
+
role =optional(string)
91
+
}))
92
+
default=[]
93
+
sensitive=true
94
+
description="A list of users that you want to create on the database. Multiple blocks are allowed. The user password must be in the range of 10-32 characters. Be warned that in most case using IAM service credentials (via the var.service_credential_names) is sufficient to control access to the Enterprise Db instance. This blocks creates native enterprise database users, more info on that can be found here https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-user-management&interface=api"
95
+
}
96
+
68
97
variable"service_credential_names" {
69
98
description="Map of name, role for service credentials that you want to create for the database"
description="Allocated number of members. Members can be scaled up but not down."
82
-
default=3
83
-
validation {
84
-
condition=var.members>=3&& var.members<=20
85
-
error_message="Members count must be between 3 and 20(inclusive)"
86
-
}
87
-
}
88
-
89
108
variable"service_endpoints" {
90
109
type=string
91
110
description="Specify whether you want to enable the public, private, or both service endpoints. Supported values are 'public', 'private', or 'public-and-private'."
@@ -133,25 +152,6 @@ variable "configuration" {
133
152
default=null
134
153
}
135
154
136
-
variable"admin_pass" {
137
-
type=string
138
-
description="The password for the database administrator. If the admin password is null then the admin user ID cannot be accessed. More users can be specified in a user block."
139
-
sensitive=true
140
-
default=null
141
-
}
142
-
143
-
variable"users" {
144
-
type=list(object({
145
-
name =string
146
-
password =string# pragma: allowlist secret
147
-
type =string# "type" is required to generate the connection string for the outputs.
148
-
role =optional(string)
149
-
}))
150
-
default=[]
151
-
sensitive=true
152
-
description="A list of users that you want to create on the database. Multiple blocks are allowed. The user password must be in the range of 10-32 characters. Be warned that in most case using IAM service credentials (via the var.service_credential_names) is sufficient to control access to the Enterprise Db instance. This blocks creates native enterprise database users, more info on that can be found here https://cloud.ibm.com/docs/databases-for-enterprisedb?topic=databases-for-enterprisedb-user-management&interface=api"
0 commit comments