@@ -11,34 +11,34 @@ module "api-gateway" {
11
11
enabled = true
12
12
13
13
# Api Gateway Resource
14
- path_parts = [" mytestresource" , " mytestresource1 " ]
14
+ path_parts = [" mytestresource" ]
15
15
16
16
# Api Gateway Method
17
17
method_enabled = true
18
- http_methods = [" GET" , " GET " ]
18
+ http_methods = [" GET" ]
19
19
20
20
# Api Gateway Integration
21
- integration_types = [" MOCK" , " AWS_PROXY " ]
22
- integration_http_methods = [" POST" , " POST " ]
23
- uri = [" " , " arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:xxxxxxxxxxxx:function:test/invocations " ]
21
+ integration_types = [" MOCK" ]
22
+ integration_http_methods = [" POST" ]
23
+ uri = [" " ]
24
24
integration_request_parameters = [{
25
25
" integration.request.header.X-Authorization" = " 'static'"
26
- }, {} ]
26
+ }]
27
27
request_templates = [{
28
28
" application/xml" = << EOF
29
29
{
30
30
"body" : $input.json('$')
31
31
}
32
32
EOF
33
- }, {} ]
33
+ }]
34
34
35
35
# Api Gateway Method Response
36
- status_codes = [200 , 200 ]
37
- response_models = [{ " application/json" = " Empty" }, {} ]
38
- response_parameters = [{ " method.response.header.X-Some-Header" = true }, {} ]
36
+ status_codes = [200 ]
37
+ response_models = [{ " application/json" = " Empty" }]
38
+ response_parameters = [{ " method.response.header.X-Some-Header" = true }]
39
39
40
40
# Api Gateway Integration Response
41
- integration_response_parameters = [{ " method.response.header.X-Some-Header" = " integration.response.header.X-Some-Other-Header" }, {} ]
41
+ integration_response_parameters = [{ " method.response.header.X-Some-Header" = " integration.response.header.X-Some-Other-Header" }]
42
42
response_templates = [{
43
43
" application/xml" = << EOF
44
44
#set($inputRoot = $input.path('$'))
47
47
$inputRoot.body
48
48
</message>
49
49
EOF
50
- }, {} ]
50
+ }]
51
51
52
52
# Api Gateway Deployment
53
53
deployment_enabled = true
54
54
stage_name = " deploy"
55
55
56
56
# Api Gateway Stage
57
57
stage_enabled = true
58
- stage_names = [" qa" , " dev " ]
58
+ stage_names = [" qa" ]
59
59
}
0 commit comments