来自this answer我理解SAM是Cloudformation的变形。
有没有办法通过控制台、CLI 或其他方式从 SAM 模板获取转换后的 Cloudformation 模板?
最佳答案
对于已部署的 SAM 项目,您应该在 CloudFormation 控制台中找到转换后的 native CloudFormation 模板。选择您的堆栈,然后打开模板
选项卡。您还可以使用 aws cloudformation get-template
通过 awscli 检索此信息。
您还可以使用 SAM cli,例如:
sam package \
--output-template-file output.yaml \
--s3-bucket mybucketname
关于amazon-web-services - 如何将无服务器应用程序模型 (SAM) 模板转换为 Cloudformation?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61051849/