forked from miqdigital/terraform-aws-eks-cluster
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
66 lines (53 loc) · 1.78 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
variable "cluster-name" {
description = "Enter eks cluster name - example like eks-demo, eks-dev etc"
type = string
default = "my_eks"
}
variable "eks-worker-ami" {
description = "Please visit here - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html and select your pre-baked AMI depending on the cluster version and the region you are planning to launch cluster into"
default = "ami-0e832ed7606840c66"
}
variable "volume_size" {
description = "Enter size of the volume"
default = 30
}
# In eks worker node instance type directly affects the number of PODs can run on a Node. Choose wisely.
# https://github.com/awslabs/amazon-eks-ami/blob/master/files/eni-max-pods.txt
variable "worker-node-instance_type" {
description = "enter worker node instance type"
default = "ec2_key"
}
variable "ssh_key_pair" {
description = "Enter SSH keypair name that already exist in the account"
default = "ec2_key"
}
variable "public_subnets" {
type = list
description = "you can replace these values as per your choice of subnet range"
default = ["10.15.0.0/22", "10.15.4.0/22", "10.15.8.0/22"]
}
variable "private_subnets" {
type = list
description = "you can replace these values as per your choice of subnet range"
default = ["10.15.12.0/22", "10.15.16.0/22", "10.15.20.0/22"]
}
variable "aws_profile" {
default = "eks"
description = "configure AWS CLI profile"
}
variable "eks_version" {
description = "kubernetes cluster version provided by AWS EKS - It would be like 1.12 or 1.13"
default = "1.28"
}
variable "region" {
description = "Enter region you want to create EKS cluster in"
default = "us-east-2"
}
variable "count_private" {
type = number
default = 0
}
variable "count_public" {
type = number
default = 0
}