首页 > 解决方案 > 使用 Cloudformation 部署 lambda 时的问题

问题描述

我像这样使用 cloudformation 部署了我的 lambda 函数。

aws cloudformation package \
  --template-file template.yaml \
  --output-template-file serverless-output.yaml \
  --s3-bucket <bucket-name>
aws cloudformation deploy \
  --template-file serverless-output.yaml \
  --stack-name prod \
  --capabilities CAPABILITY_IAM

但服务器不工作并给出Internal Server Error. 所以我尝试使用sls deploy命令部署 lambda,它对我来说确实很好。我不确定为什么会这样。你有什么建议吗?我希望你的善意回应。谢谢你。

标签: aws-lambdaamazon-cloudformationserverless

解决方案


推荐阅读