AWS Package a Lambda

The Problem

You have built a .net core based AWS lambda package and now you wish to publish it.

Googling the internet you find that this can be done by running the following script:

It throws the error: “dotnet : No executeable found matching command “dotnet-lambda”

The Issue

You Lambda project requires some special tools that provide the lambda packager.

The Solution

Edit your lambda text file and ensure that the following block exists as an item group

Restore the packages, (dotnet restore), and retry the “package” command and the lambda should now build and be packed into your lambda-1.zip file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.