{"id":23619177,"url":"https://github.com/cythral/dotnet-lambda-layer","last_synced_at":"2026-04-10T01:03:51.894Z","repository":{"id":48487717,"uuid":"304080082","full_name":"cythral/dotnet-lambda-layer","owner":"cythral","description":"AL2 Compatible Lambda Layer containing .NET 5.  Does not include RuntimeSupport package; expects non self-contained, executable assembly that interacts with the Lambda Runtime API (to avoid reflection)","archived":false,"fork":false,"pushed_at":"2024-02-16T12:04:22.000Z","size":68,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T10:08:16.852Z","etag":null,"topics":["aws","aws-lambda","cloud","csharp","dotnet","lambda","lambda-layer"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/cythral.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-10-14T16:55:41.000Z","updated_at":"2022-01-05T15:17:46.000Z","dependencies_parsed_at":"2022-09-03T21:11:53.532Z","dependency_job_id":"17758566-a5c8-41e2-a22a-5966af361756","html_url":"https://github.com/cythral/dotnet-lambda-layer","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/cythral/dotnet-lambda-layer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cythral%2Fdotnet-lambda-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cythral%2Fdotnet-lambda-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cythral%2Fdotnet-lambda-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cythral%2Fdotnet-lambda-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cythral","download_url":"https://codeload.github.com/cythral/dotnet-lambda-layer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cythral%2Fdotnet-lambda-layer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28133802,"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","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","cloud","csharp","dotnet","lambda","lambda-layer"],"created_at":"2024-12-27T19:47:53.658Z","updated_at":"2025-12-30T23:04:49.158Z","avatar_url":"https://github.com/cythral.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET Lambda Layer\n\nThis provides an AWS Lambda Layer containing .NET 5. This does not do everything that the hosted runtimes do, it simply invokes a non-self contained, executable assembly that interacts with the Lambda Runtime API in order to reduce package sizes.\n\n[Available on the Serverless Application Repository](https://console.aws.amazon.com/lambda/home?region=us-east-1#/create/app?applicationId=arn:aws:serverlessrepo:us-east-1:918601311641:applications/dotnet-lambda-layer)\n\n**Current .NET Version**: 7.0.302\n\n## News\n\nThe latest version of the layer has a couple breaking changes:\n\n- The layer name has been renamed to `dotnet`\n- Layer versions will now coincide with their respective .NET versions.\n- The layer is now published to SAR via a different account, as a result of an account re-org.\n\n## Usage\n\nAfter deployed, you can add the layer to your Lambda.  You can see [a CloudFormation example of this here](https://github.com/cythral/lambdajection/blob/master/examples/CustomRuntime/cloudformation.template.yml).  \n\nThe handler scheme is the same as if you were using an AWS-hosted runtime: `Assembly::Class::Method`, however the runtime layer will ignore the class and method and simply execute the assembly given in the scheme.  The invoked assembly should handle interacting with the Lambda Runtime API (this can be done using the [RuntimeSupport package](https://github.com/aws/aws-lambda-dotnet/tree/master/Libraries/src/Amazon.Lambda.RuntimeSupport)).\n\n## Manual Installation\n\nThis section can be ignored if you are deploying from the serverless application repository.\n\n### Prerequisites\n\n- [dotnet-install script](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script)\n- The AWS CLI\n- An AWS Account and IAM Credentials\n\n### Building \u0026 Deploying\n\n1. Run [build.sh](./build.sh) to run installation of the .NET runtime to the bin folder\n2. Run `aws cloudformation package` on the deploy/dotnet-lambda-layer.template.yml file\n3. Run `aws cloudformation deploy` on the packaged template\n\nSee the manual pages for the AWS CLI for specific options to use on the package and deploy commands.  You can also setup a CodeBuild project that builds the layer using the provided `buildspec.yml` file.\n\nPlease note that this repo uses a [custom CICD system built with step functions](https://github.com/cythral/cfn).  The CICD template and ASL file will not work out-of-the-box without this system.  A self-contained CodePipeline template be provided in the future.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcythral%2Fdotnet-lambda-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcythral%2Fdotnet-lambda-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcythral%2Fdotnet-lambda-layer/lists"}