问题描述
我在尝试在 lambda 中运行 PowerShell 处理程序函数时遇到问题。下面是 Lambda 的 CFT 的一部分,我注意到 Handler
与 Python(我更熟悉的 Lambda 运行时)相比针对 PowerShell 的设计不同。我在这里不明白什么?我想调用一个 Handler.ps1
脚本,但它没有注册和回滚
{
"errorType": "LambdaException","errorMessage": "Could not find the required 'Handler.deps.json'. This file should be present at the root of the deployment package."
}
这是模板部分:
LambdaFunction:
Type: "AWS::Lambda::Function"
Properties:
Description: 'PowerShell Runtime Lambda'
FunctionName: !Join
- '-'
- - !Ref S3BucketName
- 'lambdaPS'
Code:
S3Bucket: !Ref S3Bucket
S3Key: !Join
- '/'
- - !Ref AppName
- !Ref AwsEnv
- !Ref AppVersion
- 'lambda-code.zip'
Handler: 'Handler::Handler.Bootstrap::ExecuteFunction'
Runtime: "dotnetcore2.1"
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)