# Install cf2tf with Homebrew

Cloudformation templates to Terraform HCL converter. Version 0.9.2 via Homebrew; verified 2026-07-25.

## Install

```sh
sudo av install brew:cf2tf
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cf2tf
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:cf2tf
- **Package manager:** Homebrew
- **Version:** 0.9.2
- **Source summary:** Cloudformation templates to Terraform HCL converter
- **Homepage:** <https://github.com/DontShaveTheYak/cf2tf>
- **Repository:** <https://github.com/DontShaveTheYak/cf2tf>
- **Last updated:** 2026-07-25T09:54:11Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cf2tf (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.9.2
## Project history and usage

cf2tf is a Python command-line converter for moving AWS CloudFormation templates toward Terraform HCL. Its own README frames the tool as an attempt rather than a perfect translator, because some CloudFormation data shapes do not map cleanly to HCL.

### Project history

The public GitHub repository was created in 2022 and the README documents the project as Cloudformation 2 Terraform, a CLI that reads a CloudFormation template and emits Terraform resources. The README also notes that cfn-flip is used to parse YAML into a Python dictionary, placing cf2tf in the small ecosystem of CloudFormation template tooling.

### Adoption history

The project is distributed as a PyPI package and is packaged by Homebrew as `cf2tf`. That makes it visible to both Python users and macOS/Linux package-manager users who need one-off CloudFormation-to-Terraform conversion during migration work.

### How it is used

The documented CLI usage is `cf2tf my_template.yaml`, optionally redirecting stdout to `main.tf` or using `-o` to split output into files by resource type.

### Why package nerds care

Package nerds care about cf2tf because it is a narrow migration helper: not a Terraform provider, not an AWS deployment tool, just a packaged converter for an awkward infrastructure-as-code boundary.

### Timeline

- 2022: GitHub repository created.
- 2022: First GitHub release metadata published for tag 0.0.0.
- 2026: GitHub release metadata shows tag 0.9.2.

### Related projects

- AWS CloudFormation Template Flip is acknowledged by cf2tf as the parser used to convert templates from YAML to Python dictionaries.
- Terraform and HashiCorp HCL are the target ecosystem for generated output.

### Sources

- <https://api.github.com/repos/DontShaveTheYak/cf2tf>
- <https://github.com/DontShaveTheYak/cf2tf>
- <https://github.com/DontShaveTheYak/cf2tf#readme>
- <https://formulae.brew.sh/api/formula/cf2tf.json>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal


## Combined YAML source

View the package source record on GitHub. [combined/cf2tf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cf2tf.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
