# Install cf2tf with Homebrew

Cloudformation templates to Terraform HCL converter. Version 0.9.2 via Homebrew; verified 2026-05-20.

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/cf2tf>
- **Version:** 0.9.2
- **Source summary:** Cloudformation templates to Terraform HCL converter
- **Homepage:** <https://github.com/DontShaveTheYak/cf2tf>
- **Repository:** <https://github.com/DontShaveTheYak/cf2tf>
- **Upstream docs:** <https://github.com/DontShaveTheYak/cf2tf#readme>
- **License:** GPL-3.0-only
- **Source archive:** <https://files.pythonhosted.org/packages/7f/c3/a6dfdc4848cfd4fb50e15e9449c439791a009638c2bd06b6fe6982d9afc1/cf2tf-0.9.2.tar.gz>
- **Last updated:** 2026-05-20T11:35:01Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cf2tf (cli)
- cf2tf (alias)

## Dependencies

- certifi
- libyaml
- python@3.14

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.9.2
- Package-manager updated: 2026-05-20
- Local data: ok
- Upstream repository: https://github.com/DontShaveTheYak/cf2tf
- info: No cached GitHub release or tag data was available.
## 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cf2tf
- **Version Scheme:** 0
- **Revision:** 4
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [terracognita](https://www.automicvault.com/pkg/brew/terracognita/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cdktf](https://www.automicvault.com/pkg/brew/cdktf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cf-terraforming](https://www.automicvault.com/pkg/brew/cf-terraforming/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [pug](https://www.automicvault.com/pkg/brew/pug/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [terraform-cleaner](https://www.automicvault.com/pkg/brew/terraform-cleaner/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [terraform-graph-beautifier](https://www.automicvault.com/pkg/brew/terraform-graph-beautifier/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cfn-format](https://www.automicvault.com/pkg/brew/cfn-format/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [cfnctl](https://www.automicvault.com/pkg/brew/cfnctl/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [cloudformation-cli](https://www.automicvault.com/pkg/brew/cloudformation-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, certifi, cli, cloud, cloud-infrastructure.
- [cfv](https://www.automicvault.com/pkg/brew/cfv/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, cloudformation.
- [cfn-flip](https://www.automicvault.com/pkg/brew/cfn-flip/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, cloudformation.

## Combined YAML source

View the package source record on GitHub. [combined/cf2tf.yml](https://github.com/automic-vault/db/blob/main/combined/cf2tf.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
