简体   繁体   English

Cloudformation如何将现有资源导入Stack?

[英]Cloudformation how to import existing resources into Stack?

We have a lot of resources created manually.我们有很多手动创建的资源。 How do I add them to CloudFormation stack without manually adding each of them in template?如何将它们添加到 CloudFormation 堆栈,而无需在模板中手动添加它们? There are so many resources added manually, that's why it will take too much time If I start adding them manually one by one to template.手动添加的资源太多了,这就是为什么如果我开始手动将它们一个一个地添加到模板会花费太多时间。

Update: Looks like there is no other way than adding them to new template manually.更新:看起来除了手动将它们添加到新模板之外别无他法。 I completed it by updating the infrastructure with new template for the resources that I wanted to sync on PROD env.我通过为我想在 PROD env 上同步的资源更新基础设施来完成它。

Yes, you have to do it manually.是的,你必须手动完成。 But to jump start the process you can use former2 tool, which can generate the cloudformation templates from existing resources for you.但要快速启动该过程,您可以使用former2工具,它可以为您从现有资源生成 cloudformation 模板。

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

相关问题 如何通过 CloudFormation 将堆栈导出的现有 S3 存储桶导入另一个堆栈 YAML - How to import an existing S3 bucket exported by a stack, into another stack via CloudFormation YAML 引用 Cloudformation 中的现有资源 - Reference existing resources in Cloudformation 如何在另一个堆栈参数中导入 cloudformation 堆栈 output? - How to import cloudformation stack output inside another stack parameter? 如何从 CfnInclude 导入的 CloudFormation 堆栈中删除资源? - How can I remove resources from a CfnInclude imported CloudFormation stack? 如何在单独的子目录中将现有资源导入到terraform? - How to import existing resources to terraform in a separate subdirectory? 使用 JQ 过滤 cloudformation 堆栈资源 - Filtering cloudformation stack resources using JQ 将现有 CloudFormation 资源大规模导入 CDK - Importing existing CloudFormation resources into CDK at scale Cloudformation AWS CLI 查询具有多个嵌套堆栈的所有堆栈资源 - Cloudformation AWS CLI Query ALL Stack resources with multiple nested stacks 如何在 AWS CDK 项目/堆栈中导入现有的 Aurora MySQL 集群? - How to import an existing Aurora MySQL cluster in a AWS CDK project/stack? 如何将“手动创建”的资源添加到 cloudformation 模板 - how to add "manually created" resources to the cloudformation template
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM