Serverless plugin for package DotNet lambda function before deploy in to AWS
npm i serverless-dotnet-lambda-package
Add the plugin to your serverless.yml
file:
plugins:
- serverless-dotnet-lambda-package
Add framework and buildConfiguration to your serverless.yml
file in provider:
E.g.
provider:
name: aws
framework: netcoreapp3.1
buildConfiguration: Release
Set projectFolder and artifact for each DotNet function:
E.g.
package:
artifact: src/app/functionproject-folder/publish/deploy-package.zip
projectFolder: src/app/functionproject-folder
This work is based on @tsibelman serverless-multi-dotnet