Amazon API Gateway to AWS Lambda

API Gateway REST API → Lambda

Create an Amazon API Gateway REST API to AWS Lambda

The CDK stack creates an Amazon API Gateway REST API endpoint with AWS Lambda function proxy integration.
Proxy integration creates a proxy resource with the greedy path `{proxy+}` and the method `ANY`.
This means that the REST API endpoint accepts any method and any path by default.
The Lambda used in this pattern is an ASP.NET Core Web API application that has been configured to allow Lambda and API Gateway to act as the web server instead of Kestrel.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-lambda-cdk-dotnet

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Ankush Jain

Ankush Jain

Application Development Consultant at AWS Professional Services.

Follow on LinkedIn