cf2tf
« Back to VersTracker
Description:
Cloudformation templates to Terraform HCL converter
Type: Formula  |  Latest Version: 0.9.1@2  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: cloudformation terraform hcl aws converter devops
Install: brew install cf2tf
About:
cf2tf is a command-line tool that automatically converts AWS CloudFormation templates into Terraform HCL code. It analyzes existing cloud infrastructure definitions to accelerate the migration process from AWS to Terraform. This significantly reduces the manual effort and potential for errors when adopting infrastructure-as-code workflows.
Key Features:
  • Automatic conversion of CloudFormation intrinsic functions to Terraform functions
  • Supports both JSON and YAML CloudFormation templates
  • Generates readable and idiomatic Terraform HCL code
  • Handles resource attribute mapping and dependencies
Use Cases:
  • Migrating existing AWS infrastructure managed by CloudFormation to Terraform
  • Converting CloudFormation templates for use in Terraform Cloud or Enterprise
  • Learning Terraform syntax by comparing it to existing CloudFormation templates
Alternatives:
  • Former2 – Former2 generates IaC templates from live infrastructure, whereas cf2tf converts existing template files.
  • Terraformer – Terraformer imports existing cloud resources into Terraform state and code, similar to Former2.
License: GPL-3.0-only
Dependencies: certifi, libyaml, python@3.14
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Oct 17, 2025 5:01pm 2 VERSION_BUMP 8ad5e12f
Sep 13, 2025 7:29am 2 VERSION_BUMP 5c57c7be
Nov 19, 2024 1:20am 0 VERSION_BUMP 4800fc48
Nov 19, 2024 12:41am 0 VERSION_BUMP fd0bef8b
Oct 13, 2024 4:51pm 2 VERSION_BUMP 8b571e03