我正在按照教程编写https://docs.aws.amazon.com/lambda/latest/dg/services-rds-tutorial.html处的VPS数据库>
我开始研究“创建Lambda函数”。我在家中有一个名为aws_mysql_tutorial/app.py
的文件夹,还有init
--zip-file fileb://app.zip
参数,却不知道压缩什么以及将其放置在哪里...我不知道“ fileb”路径的含义。对我在这里所做的任何帮助,以满足aws lambda create-function
表示赞赏制作7zip文件后,出现以下错误
$ aws lambda create-function --function-name CreateTableAddRecordsAndRead --runtime python3.8 --zip-file fileb://app.7z --handler app.handler --role arn:aws:iam:::role/lambda-vpc-role --vpc-config SubnetIds=subnet-,subnet-,SecurityGroupIds=sg-
--zip-file must be a zip file with the fileb:// prefix.
Example usage: --zip-file fileb://path/to/file.zip
我正在按照教程编写有关VPS数据库的信息,网址为https://docs.aws.amazon.com/lambda/latest/dg/services-rds-tutorial.html。我开始学习“创建Lambda函数”。我家里有一个名为...
类似文档中缺少创建zip文件的步骤。此处不支持7z。您必须创建一个.zip
。您可以使用以下命令来压缩lambda处理程序: