Amazon API Gateway Lambda Integration Example: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
* [[Amazon_API_Gateway_Operations#Lambda_Integration_Example|API Gateway Operations]] | * [[Amazon_API_Gateway_Operations#Lambda_Integration_Example|API Gateway Operations]] | ||
=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 | |||
=Test= | |||
curl https://ws3039fvrl.execute-api.us-west-2.amazonaws.com/test/Vancover?name=red |
Revision as of 00:33, 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
Test
curl https://ws3039fvrl.execute-api.us-west-2.amazonaws.com/test/Vancover?name=red