-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
114 lines (98 loc) · 3.2 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
# ------------------------------------------------------------------------------
# Variables
# ------------------------------------------------------------------------------
variable "name_prefix" {
description = "A prefix used for naming resources."
type = string
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = map(string)
default = {}
}
variable "role_permissions_boundary_arn" {
description = "ARN of the policy that is used to set the permissions boundary for roles created by this module."
type = string
default = ""
}
variable "api_contract" {
description = "An OpenAPI specification that defines the set of routes and integrations to create as part of the HTTP APIs"
type = string
}
variable "private_subnet_ids" {
description = "list of private subnets into which the service can be launched"
type = list(string)
}
variable "vpc_id" {
description = "The VPC ID."
type = string
}
variable "container_image" {
description = "Docker image to use for the Fargate task."
type = string
}
variable "container_environment" {
description = "Environment variables for the container."
type = map(string)
default = {
TEST = "TEST"
}
}
variable "container_port" {
description = "Port that the container exposes."
type = number
default = 0
}
variable "desired_count" {
description = "The initial number of instances of certificate catering tasks to place and keep running - autoscaling may adjust)"
type = number
default = 1
}
variable "task_definition_cpu" {
description = "Amount of CPU to reserve for the certificate catering tasks."
type = number
default = 256
}
variable "task_definition_memory" {
description = "The soft limit (in MiB) of memory to reserve for the certificate catering containers."
type = number
default = 512
}
variable "disable_execute_api_endpoint" {
description = "Setting this to true disables the execute api endpoint - important for MTLS"
type = bool
default = false
}
variable "route_settings" {
description = "A list of route settings objects to apply to the default stage"
type = list(object({
route_key = string
throttling_burst_limit = number
throttling_rate_limit = number
}))
default = []
}
variable "container_health_check" {
description = "An ECS TaskDefinition HealthCheck object to set in each container"
default = null
type = object(
{
command = list(string)
interval = number
retries = number
startPeriod = number
timeout = number
}
)
}
variable "access_log_format" {
description = "A string on a single line that represents the elements and format of the access log entries"
type = string
default = <<EOT
{"requestId":"$context.requestId", "ip":"$context.identity.sourceIp", "requestTime":"$context.requestTime", "httpMethod":"$context.httpMethod", "resourcePath":"$context.resourcePath", "status":"$context.status", "protocol":"$context.protocol", "responseLength":"$context.responseLength" }
EOT
}
variable "description" {
default = ""
type = string
}