简体   繁体   English

如何从现有 AWS 环境创建云形成模板?

[英]How to create a cloud formation template from an existing AWS environment?

I have an existing aws infrastructure with VPC's, subnets, instances,etc.我有一个现有的 aws 基础设施,其中包含 VPC、子网、实例等。 If I need to build the same infrastructure again in future is there any way to create a cloud formation template from the existing infrastructure?如果我以后需要再次构建相同的基础架构,有没有办法从现有基础架构创建云形成模板? Please help.请帮忙。

Check the Github Former project.检查 Github项目。 Former2 can generate not just CloudFormation but Terraform Troposphere templates, and CDK (typescript) from your existing AWS resources从您现有的 AWS 资源中,Former2 不仅可以生成 CloudFormation,还可以生成 Terraform Troposphere 模板和 CDK(打字稿)

There is stack available in CloudFormation templates named CloudFormer. CloudFormation 模板中有一个名为 CloudFormer 的可用堆栈。 You can create AWS CloudFormation Templates from Existing AWS Resources by using this stack.您可以使用此堆栈从现有 AWS 资源创建 AWS CloudFormation 模板。 Although, as it is in Beta version it might not be supported for all the resources.但是,由于它处于 Beta 版本,因此可能并非所有资源都支持它。 You can refer document for more information about CloudFormer:您可以参考文档了解有关 CloudFormer 的更多信息:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cloudformer.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cloudformer.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM