[英]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.