Permalink
Browse files

use dotnet CLI Lambda integration, deploy-function (https://aws.amazo…

  • Loading branch information...
MaxHorstmann committed May 28, 2017
1 parent d0869f0 commit b1d8267176d8ccc450f1f7d2e32c40c97898341f
Showing with 5 additions and 5 deletions.
  1. +4 −0 MyProject.csproj
  2. +1 −5 buildspec.yml
View
@@ -9,4 +9,8 @@
<PackageReference Include="Amazon.Lambda.Serialization.Json" Version="1.1.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Amazon.Lambda.Tools" Version="1.5.0" />
</ItemGroup>
</Project>
View
@@ -4,8 +4,4 @@ phases:
build:
commands:
- dotnet restore
- dotnet publish -c Release
- cd bin/Release/netcoreapp1.0/publish
- zip ../../../../MyProject.zip *
- cd ../../../..
- /root/bin/aws lambda update-function-code --function-name myTestLambda --zip-file fileb://MyProject.zip
- dotnet lambda deploy-function --region us-east-1 -c Release -f netcoreapp1.0 -frun dotnetcore1.0 -fh MyProject::MyNamespace.MyClass::MyFunction -fn myTestLambda

0 comments on commit b1d8267

Please sign in to comment.