-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
161 lines (127 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
155
156
157
158
159
160
161
// Global
variable "profile_name" { default = "sre5_taehun" }
variable "cred_file" { default = "/home/user/.aws/credentials" }
variable "region" { default = "ap-northeast-2" }
#################################################################
# VPC Configuration
#################################################################
// CIDR
variable "cidr_block" {
description = "Amazon Virtual Private Cloud CIDR range."
}
variable "public_subnet_cidr" {
default = []
description = "AWS Public Subnet CIDR Block"
}
variable "private_subnet_cidr" {
default = []
description = "AWS Private Subnet CIDR Block"
}
variable "db_subnet_cidr" {
default = []
description = "AWS DB Subnet CIDR Block"
}
variable "available_azs" {
description = "AWS Available AZs you would like to deploy."
type = list(string)
default = ["ap-northeast-2a", "ap-northeast-2c"]
}
// VPC Options
variable "enable_dns_hostnames" {
default = true
description = "Enable DNS Hostname"
type = bool
}
variable "enable_dns_support" {
default = true
description = "Enable DNS Support"
type = bool
}
variable "enable_nat_gateway" {
description = "Enable NAT Gateway of Not"
default = true
type = bool
}
#################################################################
# EC2
#################################################################
variable "default_instance_type" {
default = ""
description = "Default EC2 Instance Type"
}
variable "key_pair" {
default = ""
}
variable "jenkins" {
default = {}
}
#################################################################
# Security Groups
#################################################################
// 1. Bastion SG Inbound
variable "bastion_ingress_rules" {
description = "Bastion ingresses. From, To, Protocol, Cidrs, Desc"
type = list(any)
default = []
}
// 2. Jenkins SG Inbound
variable "jenkins_ingress_rules" {
type = map(object(
{
from = number
to = number
proto = string
cidr = list(string)
desc = string
}
))
default = {}
}
// 3. ALB Ingress SG Inbound
variable "alb_ingress_rules" {
type = map(object(
{
from = number
to = number
proto = string
cidr = list(string)
desc = string
}
))
default = {}
}
// EKS
variable "eks_enabled_log_types" {
type = list(string)
default = []
}
variable "eks_version" {}
// Worker Node
variable "worker_size" {
description = "Worker Node Size"
type = map(string)
default = {
"desired" = "1"
"min" = "1"
"max" = "2"
}
}
variable "worker_instance_types" {
description = "Maximum number of worker nodes in private subnet."
type = list(string)
}
variable "worker_disk_size" {
description = "Minimum number of worker nodes in private subnet."
type = number
}
// Tagging
variable "tags" {}
variable "owner_tag" {
type = string
description = "Owner tag for resource pricing management, e.g taehun.kim"
default = "taehun.kim"
}
// EFS File System
variable "efs" {
default = {}
}