如何添加“手动创建” cloudformation模板的资源 [英] how to add "manually created" resources to the cloudformation template

查看:60
本文介绍了如何添加“手动创建” cloudformation模板的资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最初,我在AWS中手动创建了所有资源。现在,我尝试使用CloudFormation(SAM)模板来创建所有新资源。有什么办法可以将我所有的(手动创建的)旧资源都添加到此CF模板中,然后再使用此CF对那些旧资源进行修改?

I initially created all my resources in AWS manually. Now I'm trying to use CloudFormation (SAM) templates to create all my new resources. Is there any way I can all my old (manually created) resource to this CF template and hence forth use this CF to make modification to those old resources?

推荐答案

您可以在新堆栈中导入现有资源!
https:// docs。 aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-existing-stack.html

You can import existing resources in your new stack ! https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-existing-stack.html

这篇关于如何添加“手动创建” cloudformation模板的资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆