Amazon API Gateway Lambda Integration Example: Difference between revisions
Jump to navigation
Jump to search
(→Test) |
|||
(One intermediate revision by the same user not shown) | |||
Line 23: | Line 23: | ||
Lambda Function: playground-example | Lambda Function: playground-example | ||
For an example of how to create the backing Lambda Function, see: {{Internal|AWS_Lambda_Operations#Lambda_Function_Integration_with_API_Gateway|Lambda Function Integration with API Gateway}} | |||
=Test= | =Test= | ||
curl https://ws3039fvrl.execute-api.us-west-2.amazonaws.com/test/Vancover?name=red | curl https://ws3039fvrl.execute-api.us-west-2.amazonaws.com/test/Vancover?name=red |
Latest revision as of 00:44, 8 March 2019
External
- https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-with-lambda-integration.html
- https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-create-api-as-simple-proxy-for-lambda.html
Internal
Procedure
New API
New Resource -> select proxy.
Name proxy
/{proxy+} ANY setup
Integration type: Lambda Function Proxy
Lambda Region: us-west-2
Lambda Function: playground-example
For an example of how to create the backing Lambda Function, see:
Test
curl https://ws3039fvrl.execute-api.us-west-2.amazonaws.com/test/Vancover?name=red