-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathvariables.tf
More file actions
59 lines (50 loc) · 2.1 KB
/
variables.tf
File metadata and controls
59 lines (50 loc) · 2.1 KB
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
########################################################################################################################
# Input variables
########################################################################################################################
variable "ibmcloud_api_key" {
type = string
description = "The IBM Cloud api token"
sensitive = true
}
variable "prefix" {
type = string
description = "Prefix for name of all resource created by this example"
validation {
error_message = "Prefix must begin and end with a letter and contain only letters, numbers, and - characters."
condition = can(regex("^([A-z]|[a-z][-a-z0-9]*[a-z0-9])$", var.prefix))
}
}
variable "region" {
type = string
description = "Region where resources are created"
}
variable "resource_group" {
type = string
description = "An existing resource group name to use for this example, if unset a new resource group will be created"
default = null
}
variable "resource_tags" {
type = list(string)
description = "Optional list of tags to be added to created resources"
default = []
}
variable "ocp_version" {
type = string
description = "Version of the OCP cluster to provision"
default = null
}
variable "access_tags" {
type = list(string)
description = "A list of access tags to apply"
default = []
}
variable "ocp_entitlement" {
type = string
description = "Value that is applied to the entitlements for OCP cluster provisioning"
default = null
}
variable "enable_openshift_version_upgrade" {
type = bool
description = "When set to true, allows Terraform to manage major OpenShift version upgrades. This is intended for advanced users who manually control major version upgrades. Defaults to false to avoid unintended drift from IBM-managed patch updates. NOTE: Enabling this on existing clusters requires a one-time terraform state migration. See [README](https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc/blob/main/README.md#openshift-version-upgrade) for details."
default = false
}