-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
93 lines (76 loc) · 1.83 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
variable "region" {
type = "string"
default = "us-west-2"
}
variable "vpc-cidr" {
type = "string"
default = "10.22.0.0/16"
}
variable "cluster-name" {
type = "string"
default = "talk-security"
}
variable "domain-name" {
type = "string"
default = "cloudacademy.eti.br"
}
variable "company" {
default = "Acme"
}
variable "elasticsearch-domain-name" {
type = "string"
default = "jaeger-tracing"
}
variable "network-private" {
type = list(object({
subnets-cidr = string
availability_zone = string
access-layer = string
}))
default = [
{ subnets-cidr : "10.22.0.0/21", availability_zone : "us-west-2a", access-layer : "private" },
{ subnets-cidr : "10.22.8.0/21", availability_zone : "us-west-2b", access-layer : "private" },
{ subnets-cidr : "10.22.16.0/21", availability_zone : "us-west-2c", access-layer : "private" },
]
}
variable "network-public" {
type = list(object({
subnets-cidr = string
availability_zone = string
access-layer = string
}))
default = [
{ subnets-cidr : "10.22.24.0/21", availability_zone : "us-west-2a", access-layer : "public" },
{ subnets-cidr : "10.22.32.0/21", availability_zone : "us-west-2b", access-layer : "public" },
{ subnets-cidr : "10.22.64.0/21", availability_zone : "us-west-2c", access-layer : "public" },
]
}
variable "instance_type" {
type = "map"
default = {
nexus = "t2.large"
}
}
variable "desired_capacity-kubernetes" {
type = number
default = 4
}
variable "min-size-kubernetes" {
type = number
default = 4
}
variable "max-size-kubernetes" {
type = number
default = 8
}
variable "on_demand_percent" {
type = number
default = 0
}
variable "on_demand_base_capacity" {
type = number
default = 0
}
# variable "map-users-k8s" {
# type = "string"
# }