Skip to content

Error configuring .NET CLI AWS Lambda deployment tools #1272

@msaravanaganesh

Description

@msaravanaganesh

Describe the bug

Unable to publish Lambda function using Publish-AWSPowerShellLambda getting below error.

Restoring .NET Lambda deployment tool
Exception: C:\Users\xxxxxxx\OneDrive\Documents\PowerShell\Modules\AWSLambdaPSCore\3.0.1.0\Private\_DeploymentFunctions.ps1:402
Line |
402 | throw $msg
| ~~~~~~~~~~
| Error configuring .NET CLI AWS Lambda deployment tools: 1 CALLSTACK: Command Arguments ------- ---------
| _configureAmazonLambdaTools {}
| _deployProject {FunctionHandler=Lambda _Function_Name::Lambda _Function_Name.Bootstrap::ExecuteFunction, BuildDirectory=C:\Users\xxxxxxx\AppData\Local\Temp\Lambda _Function_Name, AWSSessionToken=,
| FunctionSecurityGroups=, FunctionMemor… Publish-AWSPowerShellLambda {ProfileName=AWS-PROD, Region=us-west=2, ScriptPath=C:\Users\xxxxxxx\OneDrive\Personal\Scripts\Lambda _Function_Name\Lambda _Function_Name.ps1, Name=Lambda _Function_Name, Timeout=900} {}

Expected Behavior

The PowerShell script should be get update into the specific lambda function in the specific AWS account and region

Current Behavior

Restoring .NET Lambda deployment tool
Exception: C:\Users\xxxxxxx\OneDrive\Documents\PowerShell\Modules\AWSLambdaPSCore\3.0.1.0\Private\_DeploymentFunctions.ps1:402
Line |
402 | throw $msg
| ~~~~~~~~~~
| Error configuring .NET CLI AWS Lambda deployment tools: 1 CALLSTACK: Command Arguments ------- ---------
| _configureAmazonLambdaTools {}
| _deployProject {FunctionHandler=Lambda _Function_Name::Lambda _Function_Name.Bootstrap::ExecuteFunction, BuildDirectory=C:\Users\xxxxxxx\AppData\Local\Temp\Lambda _Function_Name, AWSSessionToken=,
| FunctionSecurityGroups=, FunctionMemor… Publish-AWSPowerShellLambda {ProfileName=AWS-PROD, Region=us-west=2, ScriptPath=C:\Users\xxxxxxx\OneDrive\Personal\Scripts\Lambda _Function_Name\Lambda _Function_Name.ps1, Name=Lambda _Function_Name, Timeout=900} {}

Reproduction Steps

NA

Possible Solution

No response

Additional Information/Context

No response

AWS .NET SDK and/or Package version used

.NET SDKs installed:
6.0.302

Targeted .NET Platform

.NET SDKs installed: 6.0.302

Operating System and version

Windows 10 (10.0.19044)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.module/lambda-client-libresponse-requestedWaiting on additional info and feedback. Will move to close soon in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions