generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
45 lines (38 loc) · 1.35 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
##############################################################################
# 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"
default = "secure-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 = "eu-gb"
}
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 "access_tags" {
type = list(string)
description = "Optional list of access management tags to be added to the created resources."
default = []
}
##############################################################################