@@ -11,34 +11,34 @@ module "api-gateway" {
1111 enabled = true
1212
1313 # Api Gateway Resource
14- path_parts = [" mytestresource" , " mytestresource1 " ]
14+ path_parts = [" mytestresource" ]
1515
1616 # Api Gateway Method
1717 method_enabled = true
18- http_methods = [" GET" , " GET " ]
18+ http_methods = [" GET" ]
1919
2020 # 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 = [" " ]
2424 integration_request_parameters = [{
2525 " integration.request.header.X-Authorization" = " 'static'"
26- }, {} ]
26+ }]
2727 request_templates = [{
2828 " application/xml" = << EOF
2929{
3030 "body" : $input.json('$')
3131}
3232EOF
33- }, {} ]
33+ }]
3434
3535 # 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 }]
3939
4040 # 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" }]
4242 response_templates = [{
4343 " application/xml" = << EOF
4444#set($inputRoot = $input.path('$'))
4747 $inputRoot.body
4848</message>
4949EOF
50- }, {} ]
50+ }]
5151
5252 # Api Gateway Deployment
5353 deployment_enabled = true
5454 stage_name = " deploy"
5555
5656 # Api Gateway Stage
5757 stage_enabled = true
58- stage_names = [" qa" , " dev " ]
58+ stage_names = [" qa" ]
5959}
0 commit comments