-
Notifications
You must be signed in to change notification settings - Fork 4
/
variables.tf
88 lines (75 loc) · 2.73 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
variable "map_accounts" {
description = "Additional AWS account numbers to add to the aws-auth configmap."
type = list(string)
default = [
"422074288268",
]
}
variable "map_roles" {
description = "Additional IAM roles to add to the aws-auth configmap."
type = list(object({
rolearn = string
username = string
groups = list(string)
}))
default = [
{
rolearn = "arn:aws:iam::422074288268:role/eks-access"
username = "rudder"
groups = ["system:masters"]
},
]
}
variable "map_users" {
description = "Additional IAM users to add to the aws-auth configmap."
type = list(object({
userarn = string
username = string
groups = list(string)
}))
default = []
}
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# These variables are expected to be passed in by the operator.
# ---------------------------------------------------------------------------------------------------------------------
variable "region" {
description = "The region used for the vpc network and the eks cluster."
type = string
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "cluster_name" {
description = "The name of the Kubernetes cluster."
type = string
default = "rudder-cluster"
}
# For the example, we recommend a /16 network for the VPC. Note that when changing the size of the network,
# you will have to adjust the 'cidr_subnetwork_width_delta' in the 'vpc_network' -module accordingly.
variable "vpc_cidr_block" {
description = "The IP address range of the VPC in CIDR notation. A prefix of /16 is recommended. Do not use a prefix higher than /27."
type = string
default = "10.6.0.0/16"
}
variable "vpc_cidr_subnetwork_width_delta" {
description = "The difference between your network and subnetwork netmask; an /16 network and a /20 subnetwork would be 4."
type = number
default = 4
}
variable "rudder_node_type" {
description = "EC2 instance type for worker nodes"
type = string
default = "c5.2xlarge"
}
variable "rudder_disk_size_gb" {
description = "Default disk size on each worker node. Used for logs and temporary storage."
type = string
default = "30"
}
variable "rudder_num_availability_zones" {
description = "Number of availability zones to create the Rudder cluster. Set it to -1 to deploy in all AZs"
type = number
default = 1
}