{"id":16584920,"url":"https://github.com/mikaelvesavuori/dotnet-lambda-demo","last_synced_at":"2026-05-05T22:31:55.448Z","repository":{"id":237419580,"uuid":"673682293","full_name":"mikaelvesavuori/dotnet-lambda-demo","owner":"mikaelvesavuori","description":"Demo project for setting up serverless C# functions (.NET 6, ARM architecture) on AWS.","archived":false,"fork":false,"pushed_at":"2023-08-02T07:26:26.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T05:16:35.010Z","etag":null,"topics":["aws","demo","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikaelvesavuori.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":"2023-08-02T07:26:18.000Z","updated_at":"2023-08-02T07:27:28.000Z","dependencies_parsed_at":"2024-05-01T16:13:13.819Z","dependency_job_id":"92bd3c61-2342-45a8-ad8a-4c85d33332cb","html_url":"https://github.com/mikaelvesavuori/dotnet-lambda-demo","commit_stats":null,"previous_names":["mikaelvesavuori/dotnet-lambda-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikaelvesavuori/dotnet-lambda-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Fdotnet-lambda-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Fdotnet-lambda-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Fdotnet-lambda-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Fdotnet-lambda-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikaelvesavuori","download_url":"https://codeload.github.com/mikaelvesavuori/dotnet-lambda-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaelvesavuori%2Fdotnet-lambda-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260769499,"owners_count":23060119,"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","demo","dotnet","lambda","serverless"],"created_at":"2024-10-11T22:46:12.793Z","updated_at":"2026-05-05T22:31:55.390Z","avatar_url":"https://github.com/mikaelvesavuori.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo: C# (.NET) serverless on AWS\n\nSmall demo project on how one could set up serverless C# (.NET 6, ARM architecture) functions on AWS.\n\nThe infrastructure is simply an API Gateway with two functions behind it, for adding and getting books from DynamoDB.\n\nIt also contains:\n\n- [Serverless Framework](https://www.serverless.com) to deploy your application\n- VS Code configuration files to run tasks for building and testing\n- A demo test using XUnit\n- Also: [Amazon.Lambda.TestTool] support as a launch task, but there's something wonky going on with the JSON serializer...\n\n**Note that this project has been created and run in a MacOS 13 environment and Windows compatibility is not guaranteed.**\n\n## Prerequisites\n\nThis assumes you have a recent Node version (19+) and Dotnet stuff installed already.\n\nSee:\n\n- [Node.js](https://nodejs.org/en)\n- [.NET](https://dotnet.microsoft.com/en-us/download)\n- [Amazon.Lambda.Tools](https://www.nuget.org/packages/Amazon.Lambda.Tools)\n- [Amazon.Lambda.TestTool](https://www.nuget.org/packages/Amazon.Lambda.TestTool-6.0)\n\n## Instructions\n\n### Installation\n\nRun `npm install` to install Node dependencies.\n\n#### Note on Node usage\n\nThe only real usage for Node here is to keep the dependency on Serverless Framework explicit and localized. You might want to simply do a global install of it instead, if you prefer.\n\n### Configuration\n\nSet your own values in `serverless.yml` for `custom.awsAccountNumber`.\n\n### Testing\n\nRun `npm test` or the Bash script `scripts/test.sh`. You can also use the VS Code task.\n\n### Building\n\nRun `npm test` or the Bash script `scripts/test.sh`. You can also use the VS Code task (Mac shortcut: CMD + SHIFT + B).\n\n### Deploying\n\nRun `npm run deploy` or the Bash script `scripts/deploy.sh`. You can also use the VS Code task.\n\n### Teardown (remove project)\n\nRun `npm run teardown` or the Bash script `scripts/teardown.sh`.\n\n## API calls\n\n_Make sure to substitute `RANDOM` and `REGION` with your own values._\n\nAdd a book with:\n\n```bash\ncurl https://RANDOM.execute-api.REGION.amazonaws.com/book -X POST -d '{\"name\":\"The new book\", \"year\": 2023}' -H 'Content-Type: application/json'\n```\n\nAnd get it with:\n\n```bash\ncurl https://RANDOM.execute-api.REGION.amazonaws.com/book -d '{\"name\":\"The new book\"}' -H 'Content-Type: application/json'\n```\n\n## References\n\n- [serverless-dotnet-demo](https://github.com/aws-samples/serverless-dotnet-demo)\n- [The AWS .NET Mock Lambda Test Tool (Preview)](https://github.com/aws/aws-lambda-dotnet/tree/master/Tools/LambdaTestTool)\n- [Lambda Function URLs - triggering .NET 6 Lambda functions with a HTTPS Request](https://nodogmablog.bryanhogan.net/2022/04/lambda-function-urls-triggering-net-6-lambda-functions-with-a-https-request/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaelvesavuori%2Fdotnet-lambda-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikaelvesavuori%2Fdotnet-lambda-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaelvesavuori%2Fdotnet-lambda-demo/lists"}