Error configuring .NET CLI AWS Lambda deployment tools #1276
-
Describe the bugUnable to publish Lambda function using Publish-AWSPowerShellLambda getting below error. Restoring .NET Lambda deployment tool Expected BehaviorThe PowerShell script should be get update into the specific lambda function in the specific AWS account and region Current BehaviorRestoring .NET Lambda deployment tool Reproduction StepsNA Possible SolutionNo response Additional Information/ContextNo response AWS .NET SDK and/or Package version used.NET SDKs installed: Targeted .NET Platform.NET SDKs installed: 6.0.302 Operating System and versionWindows 10 (10.0.19044) |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Hi @msaravanaganesh, Good morning. Thanks for posting the issue. Looks like the script is unable to configuring .NET CLI AWS Lambda deployment tools and the error is thrown at The exception is thrown after executing command to install/update .NET Global Tool Amazon.Lambda.Tools. Could you try running the Thanks, |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply, I had tried to publish the lambda function as administrator bust still getting the same error. I tried update the AWS.Lambda.Tools with the given command "dotnet tool update -g Amazon.Lambda.Tools" but that fails dotnet tool update -g Amazon.Lambda.Tools
For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool. Still struggling to fix, I hope I tried all the possibilities, created a AWS case too but they also suggest to work in the gitHub |
Beta Was this translation helpful? Give feedback.
-
I was having the exact same problem, and found a solution here on the Microsoft forums - Dotnet fails to install tools running After that I was able to run Hope that helps |
Beta Was this translation helpful? Give feedback.
-
Amazing yes it worked. But any idea how and what happen suddenly end up .Net issue. the same system was working earlier without any issues. |
Beta Was this translation helpful? Give feedback.
-
@msaravanaganesh Now that I can't explain, mine was a fresh install of the .Net SDK and the problem was present there |
Beta Was this translation helpful? Give feedback.
-
@markgilbert-git Thanks for your guidance. |
Beta Was this translation helpful? Give feedback.
Hi @msaravanaganesh
I was having the exact same problem, and found a solution here on the Microsoft forums - Dotnet fails to install tools
running
dotnet nuget list source
showed an empty source list, and then runningdotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
to add the default nuget sourceAfter that I was able to run
dotnet tool update -g Amazon.Lambda.Tools
and thePublish-AWSPowerShellLambda
I was tryingHope that helps