-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/vector_layer_appends
- Loading branch information
Showing
13 changed files
with
138 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,6 +178,7 @@ | |
"api.resourcewatch.org", | ||
"my.gfw-mapbuilder.org", | ||
"resourcewatch.org", | ||
"*.wri.org", | ||
] | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,8 +17,8 @@ resource "aws_api_gateway_integration" "get_endpoint_integration" { | |
http_method = aws_api_gateway_method.get_endpoint_method.http_method | ||
type = "MOCK" | ||
|
||
passthrough_behavior = "WHEN_NO_MATCH" | ||
request_templates = { | ||
passthrough_behavior = "WHEN_NO_MATCH" | ||
request_templates = { | ||
"application/json" : <<EOT | ||
{'statusCode': 200} | ||
#set($context.responseOverride.header.Access-Control-Allow-Origin = $input.params('origin')) | ||
|
@@ -71,7 +71,7 @@ resource "aws_api_gateway_gateway_response" "exceeded_quota" { | |
response_type = "QUOTA_EXCEEDED" | ||
|
||
response_templates = { | ||
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the daily quota for this resource.\"}" | ||
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the daily quota for this resource. Please email us at [email protected] to see if your use case may qualify for higher quota.\"}" | ||
} | ||
} | ||
|
||
|
@@ -81,13 +81,13 @@ resource "aws_api_gateway_gateway_response" "throttled" { | |
response_type = "THROTTLED" | ||
|
||
response_templates = { | ||
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the rate limit for this resource. Please try again later.\"}" | ||
"application/json" = "{\"status\":\"failed\",\"message\":\"Exceeded the rate limit for this resource. Please try again later. Also email us at [email protected] to see if your use case may qualify for higher rate limit.\"}" | ||
} | ||
} | ||
|
||
resource "aws_api_gateway_gateway_response" "integration_timeout" { | ||
rest_api_id = var.rest_api_id | ||
status_code = "504" | ||
rest_api_id = var.rest_api_id | ||
status_code = "504" | ||
response_type = "INTEGRATION_TIMEOUT" | ||
|
||
response_templates = { | ||
|
Oops, something went wrong.