-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
40 lines (36 loc) · 1.19 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
variable "name_prefix" {
description = <<-EOT
Used as a prefix for the 'Name' tag for each created resource.
If null, then a random name 'xrd-terraform-[0-9a-z]{8}' is used.
EOT
type = string
default = null
}
variable "azs" {
description = <<-EOT
List of exactly two availability zones in the currently configured AWS region.
A private subnet and a public subnet is created in each of these availability zones.
Each cluster node is launched in one of the private subnets.
If null, then the first two availability zones in the currently configured AWS region is used.
EOT
type = list(string)
default = null
validation {
condition = try(length(var.azs) == 2, var.azs == null)
error_message = "Must provide exactly two availability zones."
}
}
variable "bastion_remote_access_cidr_blocks" {
description = <<-EOT
Allowed CIDR blocks for external SSH access to the Bastion instance.
This must be a list of strings.
If null, then access to the Bastion instance is prevented.
EOT
type = list(string)
}
variable "cluster_version" {
description = "Cluster version"
type = string
default = "1.32"
nullable = false
}