text PowerShell Lambda

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text PowerShell Lambda相关的知识,希望对你有一定的参考价值。

#Download the .NET Core 2.1 SDK from https://www.microsoft.com/net/download
Install-Module AWSPowerShell.NetCore
Install-Module AWSLambdaPSCore

Import-Module AWSPowerShell.NetCore
Import-Module AWSLambdaPSCore

Get-Command -Module AWSLambdaPSCore

New-Item PSLambda -ItemType Directory
New-AWSPowerShellLambda -Template Basic -ScriptName ScriptTest
#Configuring script to use installed version 3.3.390.0 of AWSPowerShell.NetCore.
#Created new AWS Lambda PowerShell script ScriptTest.ps1 from template Basic at C:\directory\PSLambda\ScriptTest

Publish-AWSPowerShellLambda -Name ScriptTest -ScriptPath .\ScriptTest.ps1

(Invoke-LMFunction -FunctionName ScriptTest -Payload '{"foo":"bar"}').payload | ConvertTo-String

Publish-AWSPowerShellLambda -Name ScriptTest -ScriptPath .\ScriptTest.ps1 -PowerShellFunctionHandler Send-TestFunction

以上是关于text PowerShell Lambda的主要内容,如果未能解决你的问题,请参考以下文章

powershell 删除AWS Lambda版本

powershell https://win32.io/posts/How-To-Find-Text-PowerShell

text 在PowerShell中重命名扩展

text PowerShell开发的基本VSCode设置

text 从Powershell安装Google Chrome

text VSCode PowerShell代码段