-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
58 lines (51 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
variable "region" {
description = "The region into which to deploy the API Gateway Lambda integration."
}
variable "component" {
description = "The component for which the API Gateway Lambda integration is being managed."
}
variable "deployment_identifier" {
description = "An identifier for this instantiation."
}
variable "lambda_function_name" {
description = "The name of the Lambda function to integrate from the API Gateway REST API."
}
variable "api_gateway_rest_api_id" {
description = "The ID of the API gateway REST API for which this Lambda integration is being managed."
}
variable "api_gateway_rest_api_root_resource_id" {
description = "The ID of the API Gateway REST API's root resource."
}
variable "api_gateway_resource_definitions" {
description = "Definitions of the resources to manage on the API Gateway REST API for the Lambda."
type = list(object({
path: string,
method: string,
integration_passthrough_behavior: optional(string)
integration_request_templates: optional(map(string))
}))
default = [
{
path: "/",
method: "ANY"
},
{
path: "/{proxy+}",
method: "ANY"
}
]
nullable = false
}
variable "use_proxy_integration" {
description = "Whether to use a proxy integration (`true`, \"AWS_PROXY\") or a custom integration (`false`, \"AWS\"). Defaults to `true`."
type = bool
default = true
nullable = false
}
variable "tags" {
description = "A map of tags to add to created infrastructure components."
default = {}
}
variable "timeout_milliseconds" {
type = number
}