我无法使用CLI命令更新我的AWS Lambda函数,
我创建了一个.zip文件,并通过AWS控制台将.zip上传到Lambda函数,它可以正常工作,
但是我无法使用AWS CLI上传相同的文件,
我在尝试使用cli命令时收到以下错误-
Error parsing parameter '--zip-file': Unable to load paramfile fileb:
用于更新功能的命令-
aws lambda update-function-code --function-name test --zip-file "fileb://$deployableName"
我是指以下链接-
1. https://docs.aws.amazon.com/cli/latest/reference/lambda/update-function-code.html
2. AWS lambda update-function-code with jar package via AWS CLI
3. How can I create an AWS Lambda function using the AWS CLI?
答案 0 :(得分:2)
我能够通过指定absolute path of the .zip file
来解决此问题,
到--zip-file选项。
aws lambda update-function-code --function-name test --zip-file "fileb:///home/user/poc/lambda/Monday-17-Jun-2019-1560756274.zip"
答案 1 :(得分:0)
错误
解析参数'--zip-file'时出错:无法加载参数文件fileb:
表示找不到给定的文件。您确定吗?