generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
57 lines (48 loc) · 1.7 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
##############################################################################
# Input Variables
##############################################################################
variable "ibmcloud_api_key" {
type = string
description = "The IBM Cloud API Key"
sensitive = true
}
variable "prefix" {
type = string
description = "Prefix for name of all resource created by this example"
default = "base-scc-wp"
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"
default = "us-south"
}
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 "is_openshift" {
type = bool
description = "Defines whether this is an OpenShift or Kubernetes cluster"
default = true
}
variable "is_vpc_cluster" {
type = bool
description = "Specify true if the target cluster for the workload protection agents is a VPC cluster, false if it is classic cluster."
default = true
}
variable "datacenter" {
type = string
description = "If creating a classic cluster, the data center where the cluster is created"
default = "syd01"
}
##############################################################################