-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
145 lines (121 loc) · 3.28 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
variable "aws_access_key" {
description = "AWS access key"
default = "<REPLACE_WTIH_YOUR_ACCESS_KEY>"
type = string
}
variable "aws_secret_key" {
description = "AWS secret key"
default = "<REPLACE_WTIH_YOUR_ACCESS_KEY>"
type = string
}
variable "public_key" {
description = "Your public key."
default = "<REPLACE_WTIH_YOUR_PUBLIC_KEY>"
type = string
}
variable "my_home_ip" {
description = "Your home ip. For firewall rules that allow you access to cluster"
default = "<REPLACE_WTIH_YOUR_HOME_IP>"
type = string
}
#
#
#
variable "profile" {
description = "The aws profile. https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_Profile.html"
default = "default"
type = string
}
variable "region" {
description = "The aws region. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html"
default = "us-west-2"
type = string
}
variable "user_name" {
description = "The aws user name"
default = "<REPLACE_WTIH_YOUR_USERNAME>"
type = string
}
variable "project" {
description = "Name to be used on all the resources as identifier. e.g. Project name, Application name"
default = "<REPLACE_WTIH_YOUR_PROJECT_NAME>"
type = string
}
#
#
#
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {
"Project" = "P3-Ecommerce"
"Environment" = "Development"
"Owner" = "Mehrab's 2206 DevOPs Batch"
}
}
#
#
#
variable "cluster_max_size" {
description = ""
type = number
default = 3
}
variable "cluster_min_size" {
description = ""
type = number
default = 1
}
variable "cluster_desired_size" {
description = ""
type = number
default = 2
}
variable "instance_type" {
description = ""
type = list(string)
default = ["t3.medium"]
}
variable "ami_id" {
description = ""
type = string
default = "ami-052efd3df9dad4825" # ubuntu 22.04 LTS server optimized for eks.
}
#
#
#
variable "availability_zones_count" {
description = "The number of AZs."
type = number
default = 2
}
variable "private_subnets_count" {
description = ""
type = number
default = 2
}
variable "public_subnets_count" {
description = ""
type = number
default = 2
}
variable "subnet_cidr_bits" {
description = "The number of subnet bits for the CIDR. For example, specifying a value 8 for this parameter will create a CIDR with a mask of /24."
type = number
default = 8
}
variable "eks_vpc_cidr" {
description = "The CIDR block for the VPC. Default value is a valid CIDR, but not acceptable by AWS and should be overridden"
default = "10.0.0.0/16"
type = string
}
variable "ec2_vpc_cidr" {
description = "The CIDR block for the VPC. Default value is a valid CIDR, but not acceptable by AWS and should be overridden"
default = ["192.30.252.0/22", "185.199.108.0/22", "140.82.112.0/20", "143.55.64.0/20"] # github webhooks ip's. Add your ip as well
type = list(string)
}
variable "availability_zones" {
description = ""
type = list(string)
default = ["us-west-2a", "us-west-2b", "us-west-2c", "us-west-2d", "us-west-2e"]
}