-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
61 lines (49 loc) · 1.55 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
# required parameters
variable "lambda_name" {
description = "Lambda and ECR repo name."
type = string
}
variable "lambda_memory_MB" {
description = "Lambda memory in MB."
type = number
}
variable "lambda_logs_retention_days" {
description = "Lambda CloudWatch logs retention in days."
type = number
}
variable "http_method" {
description = "HTTP method used to call the lambda triggering endpoint. (e.g. \"GET\")"
type = string
}
variable "http_route" {
description = "HTTP route used to call the lambda triggering endpoint. (e.g. \"/pets\")"
type = string
}
variable "http_timeout_seconds" {
description = "HTTP timeout in seconds. The underlying lambda times-out 1s earlier."
type = number
validation {
condition = var.http_timeout_seconds >= 2 && var.http_timeout_seconds <= 30
error_message = "The http_timeout_seconds value must be in at least 2 and no more than 30."
}
}
variable "apigw_logs_retention_days" {
description = "API Gateway logs retention in days."
type = number
}
# optional parameters
variable "burst_limit_rps" {
description = "Default throttling burst limit for all routes in rps."
type = number
default = 1
}
variable "rate_limit_rps" {
description = "Default throttling rate limit for all routes in rps."
type = number
default = 1
}
variable "initial_setup" {
description = "If set to `true`, only the ECR repo is going to be created, allowing to publish the first image."
type = bool
default = false
}