forked from terraform-ibm-modules/terraform-ibm-base-ocp-vpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
68 lines (57 loc) · 2.01 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
67
68
########################################################################################################################
# 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 to the resources created by the module."
default = []
}
variable "kms_instance_guid" {
type = string
description = "The GUID of the KMS instance to provision the encryption keys"
}
variable "kms_key_id" {
type = string
description = "The id of the root key in the KMS instance that will be used to encrypt the cluster."
}
variable "kms_cross_account_id" {
type = string
description = "Id of the account that owns the KMS instance to encrypt the cluster"
}
variable "ocp_entitlement" {
type = string
description = "Value that is applied to the entitlements for OCP cluster provisioning"
default = null
}