-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
110 lines (91 loc) · 2.4 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
# Variables Configuration
variable "cluster-name" {
default = "eks-cluster"
type = string
description = "The name of your EKS Cluster"
}
variable "aws-region" {
default = "us-east-1"
type = string
description = "The AWS Region to deploy EKS"
}
variable "availability-zones" {
default = ["us-east-1a", "us-east-1b", "us-east-1c"]
type = list
description = "The AWS AZ to deploy EKS"
}
variable "k8s-version" {
default = "1.13"
type = string
description = "Required K8s version"
}
variable "vpc-subnet-cidr" {
default = "10.0.0.0/16"
type = string
description = "The VPC Subnet CIDR"
}
variable "private-subnet-cidr" {
default = ["10.0.0.0/19", "10.0.32.0/19", "10.0.64.0/19"]
type = list
description = "Private Subnet CIDR"
}
variable "public-subnet-cidr" {
default = ["10.0.128.0/20", "10.0.144.0/20", "10.0.160.0/20"]
type = list
description = "Public Subnet CIDR"
}
variable "db-subnet-cidr" {
default = ["10.0.192.0/21", "10.0.200.0/21", "10.0.208.0/21"]
type = list
description = "DB/Spare Subnet CIDR"
}
variable "eks-cw-logging" {
default = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
type = list
description = "Enable EKS CWL for EKS components"
}
variable "node-instance-type" {
default = "m4.large"
type = string
description = "Worker Node EC2 instance type"
}
variable "root-block-size" {
default = "20"
type = string
description = "Size of the root EBS block device"
}
variable "desired-capacity" {
default = 2
type = string
description = "Autoscaling Desired node capacity"
}
variable "max-size" {
default = 5
type = string
description = "Autoscaling maximum node capacity"
}
variable "min-size" {
default = 1
type = string
description = "Autoscaling Minimum node capacity"
}
variable "public-min-size" {
default = 1
type = string
description = "Public Node groups ASG capacity"
}
variable "public-max-size" {
default = 1
type = string
description = "Public Node groups ASG capacity"
}
variable "public-desired-capacity" {
default = 1
type = string
description = "Public Node groups ASG capacity"
}
variable "ec2-key" {
default = "dev2"
type = string
description = "Autoscaling Minimum node capacity"
}