gpt4 book ai didi

amazon-web-services - 如何将无服务器应用程序模型 (SAM) 模板转换为 Cloudformation?

转载 作者:行者123 更新时间:2023-12-03 20:25:58 24 4
gpt4 key购买 nike

来自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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com