{"id":19281724,"url":"https://github.com/hannahchan/serverless.webapi","last_synced_at":"2025-04-22T01:31:05.086Z","repository":{"id":114545341,"uuid":"174995356","full_name":"hannahchan/Serverless.WebApi","owner":"hannahchan","description":"A serverless experiment using AWS Lambda and ASP.NET Core.","archived":true,"fork":false,"pushed_at":"2021-03-09T10:43:34.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-23T22:20:57.721Z","etag":null,"topics":["aws","dotnet","lambda","serverless"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hannahchan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-11T12:28:08.000Z","updated_at":"2024-09-24T11:43:28.000Z","dependencies_parsed_at":"2023-03-09T14:00:47.648Z","dependency_job_id":null,"html_url":"https://github.com/hannahchan/Serverless.WebApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannahchan%2FServerless.WebApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannahchan%2FServerless.WebApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannahchan%2FServerless.WebApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hannahchan%2FServerless.WebApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hannahchan","download_url":"https://codeload.github.com/hannahchan/Serverless.WebApi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250161967,"owners_count":21385014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","dotnet","lambda","serverless"],"created_at":"2024-11-09T21:23:55.988Z","updated_at":"2025-04-22T01:31:05.076Z","avatar_url":"https://github.com/hannahchan.png","language":"C#","readme":"# Serverless.WebApi\n\nServerless.WebApi is an experiment in deploying an ASP.NET Core WebApi as a serverless application to AWS Lambda. It is intended to be used as an example for learning purposes.\n\n## Prerequisites\n\n- An AWS account with programmatic access enabled\n- A S3 bucket to store your deployment packages\n- [AWS Extensions for .NET CLI](https://github.com/aws/aws-extensions-for-dotnet-cli)\n\nYou can quickly install the AWS Extensions for .NET CLI for this project by running;\n\n```\ndotnet tool restore\n```\n\n## How this works\n\nIn short a package, `Amazon.Lambda.AspNetCoreServer` is installed in the WebApi project and a separate application entry point using this package, [_LambdaEntryPoint.cs_](Sources/Serverless.WebApi/LambdaEntryPoint.cs) is created for AWS Lambda. AWS Lambda uses this entry point to your application instead of the conventional [_Program.cs_](Sources/Serverless.WebApi/Program.cs). The WebApi is configured and deployed as a serverless application by using a AWS Serverless Application Model (SAM) [template](Sources/Serverless.WebApi/template.json).\n\n## Deploying the WebApi as a Serverless Application\n\nChange into the [project directory](Sources/Serverless.WebApi) of the WebApi and run;\n\n```\ndotnet lambda deploy-serverless\n```\n\nBy default this command reads values provided in the file [_aws-lambda-tools-defaults.json_](Sources/Serverless.WebApi/aws-lambda-tools-defaults.json). If there are any required values that are missing, you will be prompted for them.\n\n## More Resources\n\n- [AWS Lambda for .NET Core](https://github.com/aws/aws-lambda-dotnet)\n- [AWS Serverless Application Model (AWS SAM)](https://github.com/awslabs/serverless-application-model)\n- [SAM CLI](https://github.com/awslabs/aws-sam-cli)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhannahchan%2Fserverless.webapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhannahchan%2Fserverless.webapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhannahchan%2Fserverless.webapi/lists"}