{"id":21905845,"url":"https://github.com/jcmdsbr/poc-aspnetcore-aws-lambda","last_synced_at":"2026-05-06T18:38:15.796Z","repository":{"id":117404696,"uuid":"200957283","full_name":"jcmdsbr/poc-aspnetcore-aws-lambda","owner":"jcmdsbr","description":"Sample of a aws lambda web api","archived":false,"fork":false,"pushed_at":"2022-08-26T21:01:54.000Z","size":14,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-22T07:19:27.268Z","etag":null,"topics":["aspnetcore","aws","aws-apigateway","aws-lambda","aws-lambda-api","aws-lambda-csharp","aws-s3"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcmdsbr.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-08-07T02:30:13.000Z","updated_at":"2021-12-07T14:02:31.000Z","dependencies_parsed_at":"2024-06-12T00:05:33.685Z","dependency_job_id":null,"html_url":"https://github.com/jcmdsbr/poc-aspnetcore-aws-lambda","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcmdsbr/poc-aspnetcore-aws-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fpoc-aspnetcore-aws-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fpoc-aspnetcore-aws-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fpoc-aspnetcore-aws-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fpoc-aspnetcore-aws-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcmdsbr","download_url":"https://codeload.github.com/jcmdsbr/poc-aspnetcore-aws-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcmdsbr%2Fpoc-aspnetcore-aws-lambda/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264476802,"owners_count":23614573,"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":["aspnetcore","aws","aws-apigateway","aws-lambda","aws-lambda-api","aws-lambda-csharp","aws-s3"],"created_at":"2024-11-28T16:38:33.435Z","updated_at":"2026-05-06T18:38:15.766Z","avatar_url":"https://github.com/jcmdsbr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Serverless Application hosted by AWS Lambda :sunglasses:\n\n- This project shows how to run an ASP.NET Core Web API project as an AWS Lambda exposed through Amazon API Gateway.\n\n## Give a Star! :star:\n\nIf you liked the project, please give a star ;)\n\n## You need some of the fallowing tools :exclamation:\n\n- Visual Studio 2019 or Visual Studio Code\n- .Net Core 2.X\n\n## Description :books:\n\nTo integrate the AWS SDK for .NET with the dependency injection system built into ASP.NET Core the NuGet package [AWSSDK.Extensions.NETCore.Setup](https://www.nuget.org/packages/AWSSDK.Extensions.NETCore.Setup/) is referenced. In the Startup.cs file the Amazon S3 client is added to the dependency injection framework. The S3ProxyController will get its S3 service client from there.\n\n```csharp\npublic void ConfigureServices(IServiceCollection services)\n{\n    services.AddMvc();\n    services.AddAWSService\u003cAmazon.S3.IAmazonS3\u003e();\n}\n```\n\n### Application Load Balancer :bulb:\n\nTo configure this project to handle requests from an Application Load Balancer instead of API Gateway change\nthe base class of `LambdaEntryPoint` from `Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction` to \n`Amazon.Lambda.AspNetCoreServer.ApplicationLoadBalancerFunction`.\n\n## Startup  :heavy_check_mark:\n\nOnce you have edited your template and code you can deploy your application using the [Amazon.Lambda.Tools Global Tool](https://github.com/aws/aws-extensions-for-dotnet-cli#aws-lambda-amazonlambdatools) from the command line.\n\nInstall Amazon.Lambda.Tools Global Tools if not already installed.\n\n```sh\n    dotnet tool install -g Amazon.Lambda.Tools\n```\n\nIf already installed check if new version is available.\n\n```sh\n    dotnet tool update -g Amazon.Lambda.Tools\n```\n\nExecute unit tests\n\n```sh\n    cd \"LambdaShoppingListWebAi/test/LambdaShoppingListWebAi.Tests\"\n    dotnet test\n```\n\nDeploy application\n\n```sh\n    cd \"LambdaShoppingListWebAi/src/LambdaShoppingListWebAi\"\n    dotnet lambda deploy-serverless\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fpoc-aspnetcore-aws-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcmdsbr%2Fpoc-aspnetcore-aws-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcmdsbr%2Fpoc-aspnetcore-aws-lambda/lists"}