Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-csharp create template uses handler-specific artifact #5411

Merged
merged 2 commits into from
Dec 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/plugins/create/templates/aws-csharp/build.cmd
Original file line number Original file line Diff line number Diff line change
@@ -1,2 +1,2 @@
dotnet restore 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
2 changes: 1 addition & 1 deletion lib/plugins/create/templates/aws-csharp/build.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ then
fi fi


dotnet restore 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
13 changes: 8 additions & 5 deletions lib/plugins/create/templates/aws-csharp/serverless.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,17 +45,20 @@ provider:
# environment: # environment:
# variable1: value1 # variable1: value1


# you can add packaging information here
package: package:
artifact: bin/release/netcoreapp2.1/deploy-package.zip individually: true
# exclude:
# - exclude-me.js
# - exclude-me-dir/**


functions: functions:
hello: hello:
handler: CsharpHandlers::AwsDotnetCsharp.Handler::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 # The following are a few example events you can configure
# NOTE: Please make sure to change your handler code to work with those events # NOTE: Please make sure to change your handler code to work with those events
# Check the event documentation for details # Check the event documentation for details
Expand Down