{"id":18425398,"url":"https://github.com/toshke/dotnetcore-lambda-example","last_synced_at":"2026-04-14T00:02:00.876Z","repository":{"id":67599788,"uuid":"94397638","full_name":"toshke/dotnetcore-lambda-example","owner":"toshke","description":"Demo project for simple lambda function written in dotnetcore","archived":false,"fork":false,"pushed_at":"2017-06-15T23:33:11.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T08:53:17.577Z","etag":null,"topics":["aws","aws-lambda","dotnetcore"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/toshke.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":"2017-06-15T03:52:37.000Z","updated_at":"2018-03-22T06:02:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f9f6e29-cc36-438c-b7fa-520bd44d5aec","html_url":"https://github.com/toshke/dotnetcore-lambda-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toshke/dotnetcore-lambda-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fdotnetcore-lambda-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fdotnetcore-lambda-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fdotnetcore-lambda-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fdotnetcore-lambda-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toshke","download_url":"https://codeload.github.com/toshke/dotnetcore-lambda-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshke%2Fdotnetcore-lambda-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31776013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","aws-lambda","dotnetcore"],"created_at":"2024-11-06T05:03:47.581Z","updated_at":"2026-04-14T00:02:00.845Z","avatar_url":"https://github.com/toshke.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## My first .NET core lambda function\n\n# Requirements\n\n## Build\n\nTo build the project, you will need dotnetcore installed\n\n## Deploy\n\nTo deploy create zip package you will need AWS cli installed\n\n## Test\n\n For viewing lambda function log, you'll need `jq` and `base64` libraries\n installed (or you can view logs in CloudWatch logs)\n\n# Quick Test\n\nTo quickly test application build, deployment and run, use `test.sh`\nscript from top-level directory, it's assuming that you have bash shell\ninstalled\n\n```\n$ ./test.sh\n\n```\n\n# Generate app\n\n```\n dotnet new classlib -n lambda-hello-world\n ```\n\n# Define AWS NuGet dependencies\n\nAdd some dependency info in `lambda-hello-world/lambda-hello-world.csproj`\n\n```\n\u003cItemGroup\u003e\n  \u003cPackageReference Include=\"Amazon.Lambda.Core\" Version=\"1.0.0\" /\u003e\n  \u003cPackageReference Include=\"Amazon.Lambda.Serialization.Json\" Version=\"1.0.0\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\n# Write some code\n\nCode in this example will print out Lambda Function metadata, and exit with \"OK\"\nresult\n\n```\n          Console.WriteLine(\"Hello world from Lambda function!\");\n\n          Console.WriteLine($\"Function name: {context.FunctionName}\");\n          Console.WriteLine($\"Function version: {context.FunctionVersion}\");\n          Console.WriteLine($\"Function ARN: {context.InvokedFunctionArn}\");\n\n          Console.WriteLine($\"Remaining lambda exection time: {context.RemainingTime.TotalMilliseconds}ms\");\n\n          return \"OK\";\n```\n\n# Install dependencies and build application code\n\n```\n$ dotnet restore \u0026\u0026 dotnet build\n  Restoring packages for .../github/dotnetcore-lambda/lambda-hello-world/lambda-hello-world.csproj...\n  Lock file has not changed. Skipping lock file write. Path: .../github/dotnetcore-lambda/lambda-hello-world/obj/project.assets.json\n  Restore completed in 389.34 ms for .../github/dotnetcore-lambda/lambda-hello-world/lambda-hello-world.csproj.\n\n  NuGet Config files used:\n      .../.nuget/NuGet/NuGet.Config\n\n  Feeds used:\n      https://api.nuget.org/v3/index.json\nMicrosoft (R) Build Engine version 15.1.1012.6693\nCopyright (C) Microsoft Corporation. All rights reserved.\n\n  lambda-hello-world -\u003e .../github/dotnetcore-lambda/lambda-hello-world/bin/Debug/netcoreapp1.0/lambda-hello-world.dll\n\nBuild succeeded.\n    0 Warning(s)\n    0 Error(s)\n\nTime Elapsed 00:00:02.45\n\n```\n\n# Create lambda package\n\n```\n$ cd bin/Debug/netcoreapp1.0/publish/ \u0026\u0026 zip -r package.zip *\n```\n\n# Create lambda function\n\n```\n$ aws lambda create-function --function-name TestDotNetCore --runtime \"dotnetcore1.0\" --role $LAMDBA_ROLE_ARN --region ap-southeast-2 --handler  lambda-hello-world::example.lambda_hello_world.LambdaHandler::HelloWorld --zip-file fileb://./lambda-hello-world/bin/Debug/netcoreapp1.0/publish/package.zip\n{\n    \"TracingConfig\": {\n        \"Mode\": \"PassThrough\"\n    },\n    \"CodeSha256\": \"gcP319XLaFzv9ZOken0dS/b81EbrrschaHvMG8LDT9w=\",\n    \"FunctionName\": \"TestDotNetCore\",\n    \"CodeSize\": 214306,\n    \"MemorySize\": 128,\n    \"FunctionArn\": \"arn:aws:lambda:ap-southeast-2:334818472548:function:TestDotNetCore\",\n    \"Version\": \"$LATEST\",\n    \"Role\": \"arn:aws:iam::XXXXXX:role/lambda_basic_execution\",\n    \"Timeout\": 3,\n    \"LastModified\": \"2017-06-15T03:14:31.929+0000\",\n    \"Handler\": \"lambda-hello-world::example.lambda_hello_world.LambdaHandler::HelloWorld\",\n    \"Runtime\": \"dotnetcore1.0\",\n    \"Description\": \"\"\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshke%2Fdotnetcore-lambda-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoshke%2Fdotnetcore-lambda-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshke%2Fdotnetcore-lambda-example/lists"}