【问题标题】:Cloudformation : is it possible to export current aws configuration as template?Cloudformation:是否可以将当前的 aws 配置导出为模板?
【发布时间】:2018-03-07 14:16:38
【问题描述】:

我刚刚创建了 Dynamodb 表、Lambda 函数、S3 存储桶等。我想知道是否有办法将此配置导出为 cloudformation 模板

【问题讨论】:

  • 是 Cloudformer- 但是生成的代码非常冗长,并且有点难以维护。从头开始模板应该不会花费太长时间,您将能够更好地构建模板,以便更好地进行长期维护。
  • 你有简单的 lambda 函数模板吗?因为我真的没有找到任何简单的

标签: amazon-web-services aws-lambda amazon-cloudformation


【解决方案1】:

CloudFormer 就是为了实现这一点而设计的,但它不支持 Lambda 函数、API Gateway 和其他服务。此外,它很笨重,需要启动一个 EC2 实例,并且不是为创建可重用模板而设计的——您必须对它们进行大量调整。据我所知,没有一项服务(亚马逊或其他)可以自动准确地导出您的资源。它在Cloudcraft roadmap 上,但还没有。

【讨论】:

    【解决方案2】:

    是的,您可以使用 cloudformer 将您的 aws 资源导出到 cloudformation 模板中。请参考此示例和示例步骤。 http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cloudformer.html

    【讨论】:

      猜你喜欢
      • 2016-10-29
      • 2019-08-26
      • 2016-08-12
      • 2017-10-30
      • 1970-01-01
      • 2017-12-23
      • 2019-01-20
      • 1970-01-01
      • 2019-11-09
      相关资源
      最近更新 更多