랭킹으로 돌아가기

iann0036/former2

JavaScriptformer2.com

Generate CloudFormation / Terraform / Troposphere templates from your existing AWS resources.

cloudformationterraformawsiactropospherecdkpulumicdktf
스타 성장
스타
2.4k
포크
297
주간 성장
이슈
173
1k2k
2023년 1월2024년 3월2025년 5월2026년 7월
아티팩트npmnpm install former2
README

Former2

CloudFormation Terraform

Generate CloudFormation / Terraform / Troposphere templates from your existing AWS resources

Screenshot

Screenshot

Overview

Former2 allows you to generate Infrastructure-as-Code outputs from your existing resources within your AWS account. By making the relevant calls using the AWS JavaScript SDK, Former2 will scan across your infrastructure and present you with the list of resources for you to choose which to generate outputs for.

Installation

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.

Install Former2 Helper for Google Chrome

Install Former2 Helper for Mozilla Firefox

Install Former2 Helper for Microsoft Edge

Alternatively, you can download and install the extension yourself.

Usage

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:

  • CloudFormation
  • Terraform
  • Troposphere
  • 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

Former2 CLI

A command-line version of Former2 with limited functionality is available for installation. For more information, see the CLI instructions.

LocalStack Support

To enable support for use against LocalStack endpoints, enable the setting in the Settings page, ensure you are using the Former2 Helper extension/add-on, and add the following configuration to LocalStack:

For Google Chrome:

EXTRA_CORS_ALLOWED_ORIGINS=chrome-extension://fhejmeojlbhfhjndnkkleooeejklmigi

For Mozilla Firefox:

EXTRA_CORS_ALLOWED_ORIGINS=moz-extension://853c673f-1bd8-4226-a5ff-f1473f7b3d90

For Microsoft Edge:

EXTRA_CORS_ALLOWED_ORIGINS=extension://okkjnfohglnomdbpimkcdkiojbeiedof

Security

Former2 does not create any resources within your AWS account.

Calls to the AWS service API endpoints are made either directly with the JavaScript SDK or via the browser extension (which also hits endpoints directly). Resource data and your credentials are kept entirely in memory and is never sent over the internet or anywhere else. The credentials are only used to sign requests to AWS endpoints. You should take care to remove any sensitive data (passwords etc.) when sharing your generated code/templates with others.

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.

Pricing

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.

FAQ

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.

관련 저장소
donnemartin/awesome-aws

A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.

PythonPyPIOtherawscloud
14.1k1.9k
bridgecrewio/checkov

Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.

PythonPyPIApache License 2.0terraformstatic-analysis
checkov.io
8.9k1.4k
cloudtools/troposphere

troposphere - Python library to create AWS CloudFormation descriptions

PythonPyPIBSD 2-Clause "Simplified" Licenseaws-cloudformationcloudformation
4.9k1.4k
widdix/aws-cf-templates

Free Templates for AWS CloudFormation

JavaMavenApache License 2.0aws-cloudformationcloudformation-template
templates.cloudonaut.io
2.8k1.3k
aws-cloudformation/cfn-lint

CloudFormation Linter

PythonPyPIMIT No Attributioncloudformationaws
2.6k636
LeanerCloud/AutoSpotting

Saves up to 90% of AWS EC2 costs by automating the use of spot instances on existing AutoScaling groups. Installs in minutes using CloudFormation or Terraform. Convenient to deploy at scale using StackSets. Uses tagging to avoid launch configuration changes. Automated spot termination handling. Reliable fallback to on-demand instances.

GoGo ModulesOpen Software License 3.0awsautoscaling-groups
autospotting.io
2.4k313
cdk-patterns/serverless

This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use. All patterns come in Typescript and Python with the exported CloudFormation also included.

TypeScriptnpmMIT Licenseserverlesscdk
cdkpatterns.com
2.4k270
aws/aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources

TypeScriptnpmApache License 2.0awss3
marketplace.visualstudio.com/items
2k813
san089/Udacity-Data-Engineering-Projects

Few projects related to Data Engineering including Data Modeling, Infrastructure setup on cloud, Data Warehousing and Data Lake development.

PythonPyPIOtherdatadata-engineering
2k588
cloudkj/scar

Deploy static websites in seconds - with HTTPS, a global CDN, and custom domains.

JavaScriptnpmMIT Licensestatic-siteserverless
1.7k60
Sceptre/sceptre

Build better AWS infrastructure

PythonPyPIOtherawscloudformation
docs.sceptre-project.org
1.5k304
org-formation/org-formation-cli

Better than landingzones!

TypeScriptnpmMIT Licenseawsorganizations
1.5k135