简体   繁体   English

如何为已部署的 AWS 资源获取云形成模板

[英]How to get cloud formation template for an already deployed AWS resource

If I create a resource from AWS GUI , lets say a S3 bucket or an AWS glue Job , is it possible to use AWS CLI to get the CF template for such resources.如果我从 AWS GUI 创建资源,比如说 S3 存储桶或 AWS 粘合作业,是否可以使用 AWS CLI 来获取此类资源的 CF 模板。 Is there any way to reverse engineer the CF templates ?有没有办法对 CF 模板进行逆向工程?

Thanks谢谢

There is AWS provided CloudFormer .有 AWS 提供的CloudFormer But it is not maintained and in beta for years.但它多年来一直没有得到维护和测试。 Thus its not really useful these days, but you can try it for simple things if you want nevertheless.因此,这些天它并不是很有用,但是如果您愿意,您可以尝试将其用于简单的事情。

There is also a new tool, called Former2 which is up to date and generally used.还有一个新工具,称为Former2 ,它是最新的并且普遍使用。 But it is not developed by AWS, instead its an opensource third party solution to this problem.但它不是由 AWS 开发的,而是针对此问题的开源第三方解决方案。 Since its open sourced, you can run it yourself as well.由于它是开源的,你也可以自己运行它。

Unfortunately there is no fool-proof method, the closest functionality that exists is a no longer maintained tool by AWS which is CloudFormer .不幸的是,没有万无一失的方法,存在的最接近的功能是 AWS 不再维护的工具CloudFormer

AWS has added support to import existing resources into a CloudFormation stack, however this requires that you have created the template first. AWS 增加了将现有资源导入 CloudFormation 堆栈的支持,但这需要您先创建模板。

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

相关问题 Aws 云形成模板:如何为 Kinesis 资源提供保留期? - Aws cloud formation template: how to provide retention period for Kinesis resource? AWS SageMaker 云形成模板 - AWS SageMaker Cloud Formation Template 如何获取 Cloud Formation 特定资源属性的 AWS Lambda 函数的 ARN? - How do I get the ARN of an AWS Lambda function for a Cloud Formation specific resource property? 在 AWS 云形成模板中,如何根据环境将策略附加到角色 - In AWS cloud formation template how attach policy to a role based on environment 如何从现有 AWS 环境创建云形成模板? - How to create a cloud formation template from an existing AWS environment? 如何使用 Cloud Formation 模板安排 AWS 应用程序流 - How to schedule AWS App flow using Cloud Formation Template 如何在 AWS 中将 python 代码作为云形成模板的一部分? - how to include python code as a part of cloud formation template in aws? AWS 云形成:此云形成模板未添加入站规则 - AWS cloud formation : Inbound rules not getting added with this cloud formation template 适用于请求用户的AWS云形成资源 - AWS Cloud Formation Resource for the requesting user AWS Cloud Formation 在创建之前删除资源 - AWS Cloud formation delete resource before creating
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM