-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
80 lines (65 loc) · 1.96 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
variable "aws_region" {
description = "Region where Cloud Formation is created"
// default = "eu-central-1"
}
variable "cluster_name" {
description = "Name of the AWS Kubernetes cluster - will be used to name all created resources"
}
variable "tags" {
description = "Tags used for the AWS resources created by this template"
type = map(string)
}
variable "tags2" {
description = "Tags in format used for the AWS Autoscaling Group"
type = list(object({ key = string, value = string, propagate_at_launch = bool }))
}
variable "addons" {
description = "list of YAML files with Kubernetes addons which should be installed"
type = list(string)
}
variable "master_instance_type" {
description = "Type of instance for master"
// default = "t2.medium"
}
variable "worker_instance_type" {
description = "Type of instance for workers"
// default = "t2.medium"
}
variable "master_subnet_id" {
description = "The subnet-id to be used for the master instance"
}
variable "worker_subnet_ids" {
description = "The subnet-ids to be used for the worker instances"
type = list(string)
}
variable "min_worker_count" {
description = "Minimal number of worker nodes"
}
variable "max_worker_count" {
description = "Maximal number of worker nodes"
}
variable "ssh_public_key" {
description = "Path to the pulic part of SSH key which should be used for the instance"
// default = "~/.ssh/id_rsa.pub"
}
variable "hosted_zone" {
description = "Hosted zone to be used for the alias"
}
variable "hosted_zone_private" {
description = "Is the hosted zone public or private"
// default = false
}
variable "ssh_access_cidr" {
description = "List of CIDRs from which SSH access is allowed"
type = list(string)
# default = [
# "0.0.0.0/0",
# ]
}
variable "api_access_cidr" {
description = "List of CIDRs from which API access is allowed"
type = list(string)
# default = [
# "0.0.0.0/0",
# ]
}