Last active
June 20, 2020 18:37
-
-
Save DanielDaCosta/a935535f72b6216b7e9201ee43f708ab to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Mapping SQS Response | |
| resource "aws_api_gateway_method_response" "http200" { | |
| rest_api_id = aws_api_gateway_rest_api.apiGateway.id | |
| resource_id = aws_api_gateway_resource.form_score.id | |
| http_method = aws_api_gateway_method.method_form_score.http_method | |
| status_code = 200 | |
| } | |
| resource "aws_api_gateway_integration_response" "http200" { | |
| rest_api_id = aws_api_gateway_rest_api.apiGateway.id | |
| resource_id = aws_api_gateway_resource.form_score.id | |
| http_method = aws_api_gateway_method.method_form_score.http_method | |
| status_code = aws_api_gateway_method_response.http200.status_code | |
| selection_pattern = "^2[0-9][0-9]" // regex pattern for any 200 message that comes back from SQS | |
| depends_on = [ | |
| aws_api_gateway_integration.api | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment