-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
85 lines (79 loc) · 2.29 KB
/
main.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
terraform {
required_version = ">= 1.3.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.64"
}
}
}
locals {
resources = {
"0|v1" = {
depth = 0
parent_key = null
path_part = "v1"
}
"1|v1/{proxy+}" = {
depth = 1
parent_key = "0|v1"
path_part = "{proxy+}"
}
}
methods = {
"0|v1|ANY" = {
config = {
cache_key_parameters = null
cache_namespace = null
connection_id = null
connection_type = null
content_handling = null
credentials = null
integration_request_parameters = null
method_request_parameters = null
passthrough_behavior = null
request_templates = null
skip_verification = null
timeout_milliseconds = null
type = null
uri = "https://example.com/v1"
}
depth = 0
key = "0|v1|ANY"
method = "ANY"
resource_key = "0|v1"
root = false
}
"1|v1/{proxy+}|ANY" = {
config = {
cache_key_parameters = null
cache_namespace = null
connection_id = null
connection_type = null
content_handling = null
credentials = null
integration_request_parameters = null
method_request_parameters = null
passthrough_behavior = null
request_templates = null
skip_verification = null
timeout_milliseconds = null
type = null
uri = "https://example.com/v1/{proxy}"
}
depth = 1
key = "1|v1/{proxy+}|ANY"
method = "ANY"
resource_key = "1|v1/{proxy+}"
root = false
}
}
}
module "api" {
source = "../../../terraform-aws-apigateway-proxy"
name = "h4s-simple"
stage_name = "dev"
vpc_link_id = "afp3wd"
resources = local.resources
methods = local.methods
}