Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

aws-lambda-dotnet

> 编程语言
Open source

Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.

1.7K stars0 likes0 views
WebsiteGitHub

About

Libraries, samples and tools to help .NET Core developers develop AWS Lambda functions.

AWS Lambda for .NET

Repository for the AWS NuGet packages and Blueprints to support writing AWS Lambda functions using .NET Core.

For a history of releases view the release change log

Table of Contents

  • AWS Lambda for .NET Core
    • Table of Contents
    • NuGet Packages
      • Events
      • Amazon.Lambda.Tools
        • Global Tool Migration
          • Migrating from DotNetCliToolReference
      • Amazon.Lambda.Annotations
      • Amazon.Lambda.AspNetCoreServer
      • Amazon.Lambda.TestUtilities
      • Amazon.Lambda.DurableExecution
    • Blueprints
      • Dotnet CLI Templates
      • Yeoman (Deprecated)
    • Getting Help
    • Feedback and Contributing

NuGet Packages

This repo contains a number of different tools and libraries to support development of Lambda functions using .NET. These packages have individual README docs outlining specific information for that particular package. These packages are cataloged here.

Events

This packages in this folder contains classes that can be used as input types for Lambda functions that process various AWS events.

These are the packages and their README.md files:

  • Amazon.Lambda.APIGatewayEvents - README.md
  • Amazon.Lambda.ApplicationLoadBalancerEvents - README.md
  • Amazon.Lambda.CloudWatchLogsEvents - README.md
  • Amazon.Lambda.CognitoEvents - README.md
  • Amazon.Lambda.ConfigEvents - README.md
  • Amazon.Lambda.DynamoDBEvents - README.md
  • Amazon.Lambda.LexEvents - README.md
  • Amazon.Lambda.KinesisAnalyticsEvents - README.md
  • Amazon.Lambda.KinesisEvents - README.md
  • Amazon.Lambda.KinesisFirehoseEvents - README.md
  • Amazon.Lambda.S3Events - README.md
  • Amazon.Lambda.SimpleEmailEvents - README.md
  • Amazon.Lambda.SNSEvents - README.md
  • Amazon.Lambda.SQSEvents - README.md
  • Amazon.Lambda.KafkaEvents - README.md
  • Amazon.Lambda.AppSyncEvents - README.md

Amazon.Lambda.Tools

Package adds commands to the dotnet cli that can be used to manage Lambda functions including deploying a function from the dotnet cli. For more information see the README.md file for Amazon.Lambda.Tools.

Global Tool Migration

As of September 10th, 2018 Amazon.Lambda.Tools has migrated to be .NET Core Global Tools. As part of the migration the version number was set to 3.0.0.0

To install Amazon.Lambda.Tools use the dotnet tool install command.

dotnet tool install -g Amazon.Lambda.Tools

To update to the latest version of Amazon.Lambda.Tools use the dotnet tool update command.

dotnet tool update -g Amazon.Lambda.Tools
Migrating from DotNetCliToolReference

To migrate an existing project away from the older project tool, you need to edit your project file and remove the DotNetCliToolReference for the Amazon.Lambda.Tools package. For example, let's look at an existing Lambda project file.

…

To migrate this project, you need to delete the DotNetCliToolReference element, including Amazon.Lambda.Tools. If you don't remove this line, the older project tool version of Amazon.Lambda.Tools will be used instead of an installed Global Tool.

The AWS Toolkit for Visual Studio before .NET Core 2.1 would look for the presence of Amazon.Lambda.Tools in the project file to determine whether to show the Lambda deployment menu item. Because we knew we were going to switch to Global Tools, and the reference to Amazon.Lambda.Tools in the project was going away, we added the AWSProjectType property to the project file. The current version of the AWS Toolkit for Visual Studio now looks for either the presence of Amazon.Lambda.Tools or the AWSProjectType set to Lambda. Make sure when removing the DotNetCliToolReference that your project file has the AWSProjectType property to continue deploying with the AWS Toolkit for Visual Studio.

Amazon.Lambda.Annotations

The Lambda Annotations library allows C# functions to use .NET attributes for a more idiomatic experience writing Lambda functions. This includes dependency injection integration, simplified access to Lambda event information and automatic synchronization with CloudFormation template. For more information see the README.md file for Amazon.Lambda.Annotations.

Amazon.Lambda.AspNetCoreServer

Package makes it easy to run ASP.NET Core Web API applications as Lambda functions. For more information see the README.md file for Amazon.Lambda.AspNetCoreServer.

Amazon.Lambda.TestUtilities

Package includes test implementation of the interfaces from Amazon.Lambda.Core and helper methods to help in locally testing. For more information see the README.md file for Amazon.Lambda.TestUtilities.

Amazon.Lambda.DurableExecution

The Durable Execution SDK lets you write multi-step Lambda workflows that automatically checkpoint progress and resume after failures. For more information see the README.md file for Amazon.Lambda.DurableExecution.

Blueprints

Blueprints in this repository are .NET Core Lambda functions that can used to get started. In Visual Studio the Blueprints are available when creating a new project and selecting the AWS Lambda Project.

Dotnet CLI Templates

New .NET Core projects can be created with the dotnet new command. By installing the Amazon.Lambda.Templates NuGet package the AWS Lamdba blueprints can be created from the dotnet new command. To install the template execute the following command:

dotnet new -i "Amazon.Lambda.Templates::*"

The ::* on the end of the command indicates the latest version of the NuGet package.

To see a list of the Lambda templates execute dotnet new list --author AWS

…

To get details about a template, you can use the help command.

dotnet new lambda.EmptyFunction --help

…

The templates take two optional parameters to set the profile and region. These values are written to the aws-lambda-tools-default.json.

To create a function, run the following command

dotnet new lambda.EmptyFunction --name BlogFunction --profile default --region us-east-2

Yeoman (Deprecated)

The Yeoman generators have been deprecated in favor of the new dotnet new templates. They will not be migrated from the older project.json based project system.

Getting Help

To learn more about the various packages in this repo, please reference our Learning Resources document. In particular, please be sure to read through the official Lambda Developer Guide.

If those resources are not sufficient to answer your question or resolve your issue, please feel free to open an issue on this repo.

Feedback and Contributing

We welcome community contributions to our codebase and tools! If you would like to contribute, please read through the CONTRIBUTING.md document (our contribution guide) and check issues and open pull requests to ensure that the fix/feature you want to contribute is not already in development.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#awsaws-apigatewayaws-lambdanetcore

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言