Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "aws_api_gateway_resource" "Resource" {
- rest_api_id = aws_api_gateway_rest_api.apiLambda.id
- parent_id = aws_api_gateway_rest_api.apiLambda.root_resource_id
- path_part = "bot"
- }
- resource "aws_api_gateway_method" "Method" {
- rest_api_id = aws_api_gateway_rest_api.apiLambda.id
- resource_id = aws_api_gateway_resource.Resource.id
- http_method = "POST"
- authorization = "NONE"
- }
- resource "aws_api_gateway_integration" "lambdaInt" {
- rest_api_id = aws_api_gateway_rest_api.apiLambda.id
- resource_id = aws_api_gateway_resource.Resource.id
- http_method = aws_api_gateway_method.Method.http_method
- integration_http_method = "POST"
- type = "AWS"
- uri = aws_lambda_function.stone2.invoke_arn
- }
- resource "aws_api_gateway_method_response" "response_200" {
- rest_api_id = aws_api_gateway_rest_api.apiLambda.id
- resource_id = aws_api_gateway_resource.Resource.id
- http_method = aws_api_gateway_method.Method.http_method
- status_code = "200"
- }
- resource "aws_api_gateway_integration_response" "MyDemoIntegrationResponse" {
- rest_api_id = aws_api_gateway_rest_api.apiLambda.id
- resource_id = aws_api_gateway_resource.Resource.id
- http_method = aws_api_gateway_method.Method.http_method
- status_code = aws_api_gateway_method_response.response_200.status_code
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement