Generate CloudFormation / Terraform / Troposphere templates from your existing AWS resources
Though some AWS services do not require it, you will need to install the Former2 Helper browser extension in order to have support for all AWS services. The extension exists to bypass a lack of CORS on some services, such as S3 and IAM.
Alternatively, you can download and install the extension yourself.
Visit former2.com to start.
You will need an IAM key pair to authenticate your requests. If you are not planning on importing resources directly, it is recommended that you provide only read access with these credentials and suggest you assign the ReadOnlyAccess policy. If you intend to use the Import feature, you should grant appropriate permissions to create the stack.
Once authenticated you can navigate via the dashboard or sidebar to specific services, select the resources to add to your outputs and finally click the "Generate" button at the top of the screen.
The following outputs are currently supported:
- CDK V1 (Cfn Primitives) - TypeScript, Python, Java, C#
- CDK V2 (Cfn Primitives) - TypeScript, Python, Java, C#
- CDK for Terraform - TypeScript
- Pulumi - TypeScript
- Diagram - embedded version of draw.io
A command-line version of Former2 with limited functionality is available for installation. For more information, see the CLI instructions.
Former2 does not create any resources within your AWS account.
If you prefer not to use a publicly hosted site to use Former2, you can host your own version by running a HTTP server from the root of the repository. Extension support will also be available if you host on 127.0.0.1 or localhost, otherwise you can modify the extension as needed.
Though Former2 is free to access or use locally, some AWS services have small charges associated with API calls so usage may attract an extra couple cents to your AWS bill.
Does this replace Console Recorder?
Console Recorder still fills a certain gap and has features this tool does not support (such as Get/List outputs). I'll be maintaining both for as long as I can.
I found an issue / I'm missing an output / Something's wrong. Can you help?
If you find a bug or want to raise a feature request, please do so via the issues page.