-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvariables.tf
More file actions
44 lines (44 loc) · 861 Bytes
/
variables.tf
File metadata and controls
44 lines (44 loc) · 861 Bytes
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
variable "name" {
type = string
}
variable "protocol" {
type = string
default = "HTTP"
}
variable "lambda_arn" {
type = string
}
variable "lambda_invoke_arn" {
type = string
default = null
}
variable "cors" {
type = bool
default = false
}
variable "cors_config" {
type = object({
allow_credentials = bool
allow_headers = list(string)
allow_methods = list(string)
allow_origins = list(string)
expose_headers = list(string)
max_age = number
})
default = {
allow_credentials = false
allow_headers = ["*"]
allow_methods = ["*"]
allow_origins = ["*"]
expose_headers = []
max_age = 300
}
}
variable "throttling_burst_limit" {
type = number
default = 2000
}
variable "throttling_rate_limit" {
type = number
default = 1000
}