Need more info on using New-AWSPowerShellLambdaPackage #1766
-
Describe the issueWhen using New-AWSPowerShellLambdaPackage, I'm trying to specify the specific .NET Core SDK to use, but the information in the cmdlet's documentation isn't quite enough. Also, there isn't an example using the -PowerShellSdkVersion. I've put in several values for this parameter, but none of it is working. Finally the documentation calls for using the "Microsoft.PowerShell.SDK NuGet package", but I'm not sure how to determine this. Any help would be welcome. Thanks, Links |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@halciber Good morning. Thanks for the question. Please refer to blog post Deploying PowerShell-based Lambda with AWS CloudFormation on how to use CmdLet Thanks, |
Beta Was this translation helpful? Give feedback.
@halciber Good morning. Thanks for the question. Please refer to blog post Deploying PowerShell-based Lambda with AWS CloudFormation on how to use CmdLet
New-AWSPowerShellLambdaPackage
. The $PowerShellSdkVersion per documentation here is anOptional parameter to override the version of PowerShell that will execute the script. The version number must match a version of the Microsoft.PowerShell.SDK NuGet package. https://www.nuget.org/packages/Microsoft.PowerShell.SDK
. This is used in helper function _addPowerShellLambdaProjectContent and would default to value defined here, if missing.Thanks,
Ashish