aws / aws/aws-toolkit-azure-devops
Cannot deploy .Net Core lambda/Serverless applications via Azure DevOps with Ubuntu Image
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
I believe this may be a duplicate of #259; which was closed but the issue still remains.
When attempting to install a .Net Core serverless application via Azure DevOps (hosted agent) the following error is returned:
[command]/usr/bin/dotnet tool install -g Amazon.Lambda.Tools
Tool 'amazon.lambda.tools' is already installed.
[command]/usr/bin/dotnet tool update -g Amazon.Lambda.Tools
Tool 'amazon.lambda.tools' was reinstalled with the latest stable version (version '3.3.0').
[command]/usr/bin/dotnet restore
Restore completed in 47.68 ms for /home/vsts/work/1/s/src/Organisation/Organisation.csproj.
Beginning Serverless Deployment
[command]/usr/bin/dotnet lambda deploy-serverless --stack-name IAOrganisation --region ap-southeast-2 --s3-bucket appdeploy-ap-southeast-2-802889573143-dev --s3-prefix iaorganisation --disable-interactive true
**No executable found matching command "dotnet-lambda"
##[error]Error: The process '/usr/bin/dotnet' failed with exit code 1
##[section]Finishing: LambdaNETCoreDeploy**
**Expected behavior**
The .Net Core application is deployed to AWS as a Lambda function
**Screenshots**
**Your Environment**
- Azure Devops (cloud based?:
- VSTS or Azure Devops version:
- AWS VSTS Tools version: 1.5.0 (Latest)

Contributor guide
Research direction
Start by reproducing the Azure DevOps hosted-agent command sequence, especially `dotnet lambda deploy-serverless`, and compare the behavior with issue #259. Trace the AWS VSTS Tools deployment task invoked by that command; done means the .NET Core serverless application deploys successfully to AWS Lambda without the `dotnet-lambda` error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, azure, csharp
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100