-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
75 lines (61 loc) · 1.15 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
variable "name" {
type = string
}
variable "vpc_id" {
type = string
}
variable "ec2_subnets" {
type = list(string)
}
variable "ec2_create_eip" {
type = bool
default = false
}
variable "ec2_instance_type" {
type = string
default = "t2.micro"
}
variable "ec2_instance_count_min" {
type = number
default = 1
}
variable "ec2_instance_count_max" {
type = number
default = 1
}
variable "ec2_root_storage_size" {
type = number
default = 8
}
variable "attach_ecr_based_deployment_policy" {
type = bool
default = true
}
variable "iam_role_additional_policies" {
type = list(string)
default = []
}
variable "create_autoscaling" {
type = bool
default = false
}
variable "target_group_arns" {
type = list(string)
default = []
}
variable "ec2_instance_name_postfix" {
type = string
default = "server"
}
variable "ec2_ingress_ports" {
type = list(string)
default = ["80", "22"]
}
variable "applications_config" {
type = map(object({
ports = optional(string, null)
env = optional(map(string), {})
cmd = optional(string, null)
}))
default = { core = { ports = "80:8080" } }
}