-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
79 lines (70 loc) · 1.71 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
variable region {
default = "ap-southeast-1"
description = "AWS Region"
}
variable vpc {
type = object({
cidr = string
azs = list(string)
pri_sub = list(string)
pub_sub = list(string)
database_sub = list(string)
is_enable_natgw = bool
is_enable_vpngw = bool
is_single_natgw = bool
is_one_natgw_per_az = bool
db_sub_grp_create = bool
db_sub_rt_create = bool
})
description = "AWS VPC Variables"
}
variable "key_name" {
type = string
description = "AWS Key_pair variables"
}
variable "eks" {
type = object({
cluster_version = string
override_instance_types = list(string)
spot_instance_pools = number
asg_max_size = number
is_public_ip = bool
asg_desire_cap = number
map_users = list(object({ userarn = string, username = string, groups = list(string) }))
map_accounts = list(string)
})
description = "AWS EKS Variables"
}
variable "domain" {
type = string
description = "External DNS"
}
variable "alb" {
type = object({
cluster_type = string
namespace = string
})
}
variable "aws_access_key" {
type = string
}
variable "aws_secret_key" {
type = string
}
variable "rds" {
type = object({
engine = string
engine_version = string
instance_class = string
storage = string
db_name = string
db_username = string
db_password = string
db_port = string
family = string
option = string
deletion = bool
maintenance = string
backup = string
})
}