-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
142 lines (118 loc) · 3.48 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
variable "vpc_id" {
type = string
description = "VPC to deploy into"
}
variable "cluster_arn" {
type = string
description = "ECS cluster to deploy into"
}
variable "subnets" {
type = list(string)
description = "List of subnet names the service will reside on."
}
variable "container_image" {
type = string
description = "Image tag of the Docker container to use for this service (Use null if container_definitions is set)"
}
variable "azs" {
type = list(string)
description = "Availability zones"
}
variable "environment_variables" {
type = list(object({
name = string
value = string
}))
description = "The environment variables to pass to the container. This is a list of maps. (Do not use if container_definitions is set)"
default = []
}
variable "container_secrets" {
type = list(object({
name = string
valueFrom = string
}))
description = "The Secrets to Pass to the container. (Do not use if container_definitions is set)"
default = []
}
variable "listener_arn" {
type = string
description = "ALB listener ARN to add listener rule to"
}
variable "alb_security_group_id" {
type = string
description = "Security Group ID for the ALB"
}
variable "command" {
type = list(string)
description = "Container startup command (Use null if container_definitions is set)"
}
variable "hostname" {
type = string
description = "Hostname to use for listener rule"
}
variable "service_name" {
type = string
description = "Service directory in the application git repo"
}
variable "container_port" {
type = number
description = "Port exposed by the container"
}
variable "host_port" {
type = number
description = "Port exposed by the host (Do not use if container_definitions is set)"
default = null
}
variable "health_check_path" {
type = string
description = "Path to use for health checks"
}
variable "use_database_cluster" {
type = bool
description = "Whether or not we should create a DB cluster and inject the database connection string into the container"
}
variable "ecs_desired_count" {
type = number
default = 1
description = "How many tasks to launch in ECS service"
}
variable "db_name" {
type = string
default = "main"
description = "Name of the postgres database to create, if creating an RDS cluster"
}
variable "db_instance_class" {
type = string
default = "db.t4g.medium"
description = "Size of instances within the RDS cluster"
}
variable "db_instance_count" {
type = number
default = 1
description = "How many RDS instances to create"
}
variable "container_definitions" {
type = string
description = "A list of valid container definitions provided as a single valid JSON document. By default, this module will generate a container definition for you. If you need to provide your own or have multiple, you can do so here."
default = null
}
variable "task_memory" {
type = number
description = "Task memory"
default = 2048
}
variable "task_cpu" {
type = number
description = "Task CPU"
default = 1024
}
variable "load_balancer_container_name" {
type = string
description = "Container name to use for load balancer target group forwarder"
default = null
}
variable "assign_public_ip" {
type = bool
description = "Whether or not to assign a public IP to the task"
default = false
}