From 588d9bc605393d28a8d596c8e375517d1da8d2e2 Mon Sep 17 00:00:00 2001 From: Oded Niv Date: Mon, 22 Oct 2018 13:22:38 +0300 Subject: [PATCH] aws-csharp create template uses handler-specific artifact --- lib/plugins/create/templates/aws-csharp/build.cmd | 2 +- lib/plugins/create/templates/aws-csharp/build.sh | 2 +- .../create/templates/aws-csharp/serverless.yml | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/plugins/create/templates/aws-csharp/build.cmd b/lib/plugins/create/templates/aws-csharp/build.cmd index e59f004ed..cf1bf29bc 100644 --- a/lib/plugins/create/templates/aws-csharp/build.cmd +++ b/lib/plugins/create/templates/aws-csharp/build.cmd @@ -1,2 +1,2 @@ dotnet restore -dotnet lambda package --configuration release --framework netcoreapp2.1 --output-package bin/release/netcoreapp2.1/deploy-package.zip +dotnet lambda package --configuration release --framework netcoreapp2.1 --output-package bin/release/netcoreapp2.1/hello.zip diff --git a/lib/plugins/create/templates/aws-csharp/build.sh b/lib/plugins/create/templates/aws-csharp/build.sh index ceb9a8e0e..5769c5e0b 100755 --- a/lib/plugins/create/templates/aws-csharp/build.sh +++ b/lib/plugins/create/templates/aws-csharp/build.sh @@ -8,4 +8,4 @@ then fi dotnet restore -dotnet lambda package --configuration release --framework netcoreapp2.1 --output-package bin/release/netcoreapp2.1/deploy-package.zip +dotnet lambda package --configuration release --framework netcoreapp2.1 --output-package bin/release/netcoreapp2.1/hello.zip diff --git a/lib/plugins/create/templates/aws-csharp/serverless.yml b/lib/plugins/create/templates/aws-csharp/serverless.yml index bc7c83545..d6aca7ad9 100644 --- a/lib/plugins/create/templates/aws-csharp/serverless.yml +++ b/lib/plugins/create/templates/aws-csharp/serverless.yml @@ -45,17 +45,17 @@ provider: # environment: # variable1: value1 -# you can add packaging information here -package: - artifact: bin/release/netcoreapp2.1/deploy-package.zip -# exclude: -# - exclude-me.js -# - exclude-me-dir/** - functions: hello: handler: CsharpHandlers::AwsDotnetCsharp.Handler::Hello + # you can add packaging information here + package: + artifact: bin/release/netcoreapp2.1/hello.zip + # exclude: + # - exclude-me.js + # - exclude-me-dir/** + # The following are a few example events you can configure # NOTE: Please make sure to change your handler code to work with those events # Check the event documentation for details