I have an existing aws infrastructure with VPC's, subnets, instances,etc. 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.
Asked
Active
Viewed 1.7k times
28
-
Possible duplicate of [Export AWS configuration as CloudFormation template](https://stackoverflow.com/questions/38057526/export-aws-configuration-as-cloudformation-template) – neuquen Apr 03 '23 at 15:55
2 Answers
3
There is stack available in CloudFormation templates named CloudFormer. You can create AWS CloudFormation Templates from Existing AWS Resources by using this stack. Although, as it is in Beta version it might not be supported for all the resources. You can refer document for more information about CloudFormer:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-using-cloudformer.html

Aress Support
- 1,315
- 5
- 12
-
1CloudFormer can be a useful tool, but I think users should simply use it as a kind of reference while they write the real CloudFormation template from scratch. Obviously you should ideally try to avoid getting into a situation in which you want to retroactively create a template for existing infrastructure. – jarmod Oct 25 '19 at 19:51
-
14CloudFormer doesn't seem to be available anymore. Former2 (mentioned in another answer) seems to be a good alternative. I run locally just to be sure I know where my credentials are going. – emorris Oct 23 '20 at 11:07
-
14Just an FYI: CloudFormer is not supported by AWS any more and the link above is dead. – Defiant Apr 06 '21 at 13:22