-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
77 lines (73 loc) · 2.39 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
############### variables for EKS cluster ###############
variable "cluster_name" {
type = string
description = "EKS cluster name."
default = "rip"
}
variable "admin_users" {
type = list(string)
description = "List of Kubernetes admins."
default = ["andrey.o"] # set here your IAM username (make sure this user has all required privileges to create aws resources)
}
variable "asg_instance_type" {
type = string
description = "List of EC2 instance machine types to be used in EKS."
default = "t3.xlarge"
}
variable "autoscaling_minimum_size_by_az" {
type = number
description = "Minimum number of EC2 instances to autoscale our EKS cluster on each AZ."
default = 1
}
variable "autoscaling_maximum_size_by_az" {
type = number
description = "Maximum number of EC2 instances to autoscale our EKS cluster on each AZ."
default = 10
}
variable "autoscaling_average_cpu" {
type = number
description = "Average CPU threshold to autoscale EKS EC2 instances."
default = 30
}
############### variables for Metrics Server ###############
variable "metrics_server_chart_name" {
type = string
description = "Metrics Server Helm chart name."
default = "metrics-server"
}
variable "metrics_server_chart_repo" {
type = string
description = "Metrics Server Helm repository name."
default = "https://charts.bitnami.com/bitnami"
}
variable "metrics_server_chart_version" {
type = string
description = "Metrics Server Helm chart version."
default = "5.11.3"
}
############### variables for VPC creation ###############
variable "aws_region" {
type = string
description = "AWS Region ID."
default = "ap-southeast-1"
}
variable "main_network_block" {
type = string
description = "Base CIDR block to be used in our VPC."
default = "10.0.0.0/16"
}
variable "subnet_prefix_extension" {
type = number
description = "CIDR block bits extension to calculate CIDR blocks of each subnetwork."
default = 4
}
variable "zone_offset" {
type = number
description = "CIDR block bits extension offset to calculate Public subnets, avoiding collisions with Private subnets."
default = 8
}
# variable "iac_environment_tag" {
# type = string
# description = "AWS tag to indicate environment name of each infrastructure object."
# default = "staging"
# }