-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
154 lines (122 loc) · 3.09 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
146
147
148
149
150
151
152
153
154
variable "region" {
description = "AWS region used to deploy resources"
type = string
default = "us-east-1"
}
# General variables
variable "prefix" {
description = "Prefix for various resource names"
type = string
default = "EKS-LZ"
}
# Networking variables
variable "vpc_cidr" {
description = "CIDR block for the VPC that will be deployed"
type = string
default = "10.0.0.0/16"
}
variable "subnet_size" {
description = "Size of the subnets that will be created"
type = number
default = 24
}
# EKS variables
variable "eks_version" {
description = "Version of Kubernetes to deploy"
type = string
default = "1.20"
}
variable "eks_node_min" {
description = "Minimum number of EKS worker nodes"
type = number
default = 1
}
variable "eks_node_max" {
description = "Maximum nunber of EKS worker nodes"
type = number
default = 1
}
variable "eks_node_desired" {
description = "Desired number of EKS worker nodes"
type = number
default = 1
}
variable "eks_node_size" {
description = "Size of the EKS worker nodes"
type = string
default = "m5.large"
}
variable "eks_node_storage" {
description = "Size of the EBS volume for each of the EKS worker nodes"
type = number
default = 20
}
# ElastiCache variables
variable "elasticache_engine" {
description = "Database engine to use for ElastiCache"
type = string
default = "redis"
}
variable "elasticache_version" {
description = "Database version to use for ElastiCache"
type = string
default = "3.2.10"
}
variable "elasticache_parameter_group" {
description = "Database parameter group to use for ElastiCache"
type = string
default = "default.redis3.2"
}
variable "elasticache_size" {
description = "Size of the ElastiCache instance"
type = string
default = "cache.t2.small"
}
variable "elasticache_node_count" {
description = "Number of ElastiCache nodes to run"
type = number
default = 1
}
variable "elasticache_port" {
description = "Database port to use for ElastiCache"
type = number
default = 6379
}
# RDS variables
variable "rds_engine" {
description = "Database engine to use for RDS"
type = string
default = "aurora-postgresql"
}
variable "rds_version" {
description = "Database version to use for RDS"
type = string
default = "13.7"
}
variable "rds_count" {
description = "Number of RDS instances to provision"
type = number
default = 2
}
variable "rds_size" {
description = "Size of the RDS instances"
type = string
default = "db.t3.small"
}
variable "rds_name" {
description = "Name of the RDS database"
type = string
default = "eksazdb"
}
variable "rds_user" {
description = "Name of the master user for RDS"
type = string
default = "administrator"
sensitive = true
}
variable "rds_pass" {
description = "Password for the master user for RDS"
type = string
default = ""
sensitive = true
}