-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
95 lines (75 loc) · 3.08 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
##############################################################################
# Account Variables
##############################################################################
variable "ibmcloud_api_key" {
description = "The IBM Cloud platform API key needed to deploy IAM enabled resources."
type = string
sensitive = true
}
variable "TF_VERSION" {
default = "1.0"
type = string
description = "The version of the Terraform engine that's used in the Schematics workspace."
}
variable "prefix" {
description = "A unique identifier for resources. Must begin with a letter. This prefix will be prepended to any resources provisioned by this template."
type = string
default = "ez-multizone"
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" {
description = "Region where VPC will be created. To find your VPC region, use `ibmcloud is regions` command to find available regions."
type = string
default = "us-south"
}
variable "resource_group" {
description = "Name of existing resource group where all infrastructure will be provisioned"
type = string
default = "asset-development"
validation {
error_message = "Unique ID 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.resource_group))
}
}
variable "tags" {
description = "List of tags to apply to resources created by this module."
type = list(string)
default = ["ez-vpc", "multizone-vpc"]
}
##############################################################################
##############################################################################
# VPC Variables
##############################################################################
variable "use_public_gateways" {
description = "Add a public gateway in each zone."
type = bool
default = true
}
variable "add_cluster_acl_rules" {
description = "Add all needed rules to allow an IBM managed cluster to work on your VPC subnes."
type = bool
default = false
}
variable "allow_inbound_traffic" {
description = "Add a rule to the ACL to allow for inbound traffic from any IP address."
type = bool
default = true
}
variable "classic_access" {
description = "Add the ability to access classic infrastructure from your VPC."
type = bool
default = false
}
##############################################################################
##############################################################################
# Override Variables
##############################################################################
variable "override" {
description = "Override any values with `override.json` JSON to create a completely custom network."
type = bool
default = false
}
##############################################################################