Amazon API Gateway to AWS Lambda Container Image

Amazon API Gateway → AWS Lambda Container Image

This AWS CDK application demonstrates how to deploy ASP.NET Core Web API (.NET 6) to AWS Lambda as Container Image.

This pattern uses .NET as a programming language to create the entire AWS CDK stack. AWS Lambda is one of the most commonly known services on AWS and this service has helped hundreds of thousands of customers to gain cloud native benefits and modernize their applications on AWS. AWS Lambda enables packaging and deploying functions as container images up to 10 GB. This combines the flexibility and familiarity of container tooling and the agility and operational simplicity of AWS Lambda. This feature will help customers who have invested in container tooling, development workflows and expertise to leverage the full benefits of AWS Lambda along with containers. 

< 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-rest-api-lambda-ecr

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Pankaj Rawat

Pankaj Rawat

Pankaj Rawat is a Lead Consultant at Amazon Web Services.

Follow on LinkedIn

Vijai Anand Ramalingam

Vijai Anand Ramalingam

Vijai Anand Ramalingam ia an Application Developer - ISV at Amazon Web Services

Follow on LinkedIn