Amazon API Gateway HTTP API to AWS Lambda with ASP.NET 6.0

Amazon API Gateway HTTP API → AWS Lambda

HTTP API to AWS Lambda with ASP.NET 6.0

This project shows how to use AWS SAM for an ASP.NET Core Web API project using a AWS Lambda function exposed through Amazon API Gateway.
The function takes a request from an API Gateway Proxy or from an Application Load Balancer and converts that request into the classes the ASP.NET Core framework expects and then converts the response from the ASP.NET Core framework into the response body that API Gateway Proxy or Application Load Balancer understands.

< 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-http-api-lambda-dotnet-sam

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo readme for detailed testing instructions.

Cleanup

Empty the S3 bucket and run
sam delete --stack-name STACK_NAME

Created by:

Kevin Chan

Kevin Chan

ISV Solutions Architect @ Amazon Web Services

Follow on LinkedIn

Anish Mohile

Anish Mohile

ISV Solutions Architect @ Amazon Web Services

Follow on LinkedIn