我正在嘗試使用 AWS CLI 發布層
aws lambda publish-layer-version --layer-name layer --region us-west-2
這是錯誤資訊 -
Parameter validation failed:
Missing required parameter in input: "Content"
檔案顯示了這個例子 -
aws lambda publish-layer-version \
--layer-name my-layer \
--description "My Python layer" \
--license-info "MIT" \
--content S3Bucket=lambda-layers-us-west-2-123456789012,S3Key=layer.zip \
--compatible-runtimes python3.6 python3.7
如果我不使用 S3,我應該為內容引數添加什么值?
uj5u.com熱心網友回復:
您可以使用--zip-file, 而不是--content:
您正在上傳的內容的 zip 檔案的路徑。指定 --zip-file 或 --content,但不能同時指定。示例:fileb://content.zip
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/361234.html
標籤:亚马逊网络服务 拉姆达 aws-lambda 层
上一篇:如何在SAM專案中使用代碼管道?
