/dotnet-on-lambda

A simple ASP.NET Core microservice deployable to AWS API gateway and Lambda

Primary LanguageC#

ASP.NET Core and AWS Lambda

This repository is a simple starter focused on demonstrating how to run an asp.net core microservice API in the AWS Lambda environment

This repository consists of:

  • A sample microservice API providing a selection of data from the Star Wars API.
    • GET /api/starwars/characters?limit=5
    • GET /api/starwars/characters/search/skywalker
    • POST /api/starwars/characters with a JSON body like this { "name": "Harry Skywalker", "eye_color": "blue" }
  • A companion unit test project

The starter guide consists of the following steps

  1. Prerequisites, Clone, Restore and Run
  2. Prepare our API to be deployed to AWS Lambda
  3. Deployment to AWS
  4. Publish Scripts and Further Reading

Diagram of .NET Microservice on AWS Lambda

Courtesy of CloudCraft.co