forked from hajowieland/terraform-k8s-the-real-hard-way-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
159 lines (134 loc) · 3.92 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
variable "project" {
description = "Project name used for tags"
type = string
default = "k8s-the-right-hard-way-aws"
}
variable "owner" {
description = "Owner name used for tags"
type = string
default = "napo.io"
}
variable "stage" {
description = "Environment name (e.g. `testing`, `dev`, `staging`, `prod`)"
type = string
default = "testing"
}
variable "aws_profile" {
description = "AWS cli profile (e.g. `default`)"
type = string
default = "default"
}
variable "aws_region" {
description = "AWS region (e.g. `us-east-1` => US North Virginia)"
type = string
default = "us-east-1"
}
variable "availability_zones" {
description = "Number of different AZs to use"
type = number
default = 3
}
variable "aws_vpc_cidr" {
description = "VPC CIDR block"
type = string
default = "10.23.0.0/16"
}
variable "aws_key_pair_name" {
description = "AWS Key Pair name to use for EC2 Instances (if already existent)"
type = string
default = null
}
variable "ssh_public_key_path" {
description = "SSH public key path (to create a new AWS Key Pair from existing local SSH public RSA key)"
type = string
default = "~/.ssh/id_rsa.pub"
}
variable "hosted_zone" {
description = "Route53 Hosted Zone for creating records (without . suffix, e.g. `napo.io`)"
type = string
}
variable "pod_cidr" {
description = "The first two octets for the Pod network CIDR (used in Worker UserData to generate POD_CIDR envvar)"
type = string
default = "10.200"
}
variable "bastion_max_size" {
description = "Maximum number of EC2 instances for Bastion AutoScalingGroup"
type = number
default = 1
}
variable "bastion_min_size" {
description = "Minimum number of EC2 instances for Bastion AutoScalingGroup"
type = number
default = 1
}
variable "bastion_size" {
description = "Desired number of EC2 instances for Bastion AutoScalingGroup"
type = number
default = 1
}
variable "etcd_max_size" {
description = "Maximum number of EC2 instances for etcd AutoScalingGroup"
type = number
default = 3
}
variable "etcd_min_size" {
description = "Minimum number of EC2 instances for etcd AutoScalingGroup"
type = number
default = 3
}
variable "etcd_size" {
description = "Desired number of EC2 instances for etcd AutoScalingGroup"
type = number
default = 3
}
variable "master_max_size" {
description = "Maximum number of EC2 instances for K8s Master AutoScalingGroup"
type = number
default = 3
}
variable "master_min_size" {
description = "Minimum number of EC2 instances for K8s Master AutoScalingGroup"
type = number
default = 3
}
variable "master_size" {
description = "Desired number of EC2 instances for K8s Master AutoScalingGroup"
type = number
default = 3
}
variable "worker_max_size" {
description = "Maximum number of EC2 instances for K8s Worker AutoScalingGroup"
type = number
default = 3
}
variable "worker_min_size" {
description = "Minimum number of EC2 instances for K8s Worker AutoScalingGroup"
type = number
default = 3
}
variable "worker_size" {
description = "Desired number of EC2 instances for K8s Worker AutoScalingGroup"
type = number
default = 3
}
variable "bastion_instance_type" {
description = "EC2 instance type for Bastion Host"
type = string
default = "t3a.small"
}
variable "etcd_instance_type" {
description = "EC2 instance type for etcd instances"
type = string
default = "t3a.small"
}
variable "master_instance_type" {
description = "EC2 instance type for K8s master instances"
type = string
default = "t3a.small"
}
variable "worker_instance_type" {
description = "EC2 instance type for K8s worker instances"
type = string
default = "t3a.small"
}