# 使用 Homebrew 安装 cf2tf

查看 cf2tf 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cf2tf
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cf2tf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cf2tf>
- **版本:** 0.9.2
- **来源摘要:** Cloudformation templates to Terraform HCL converter
- **主页:** <https://github.com/DontShaveTheYak/cf2tf>
- **仓库:** <https://github.com/DontShaveTheYak/cf2tf>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://files.pythonhosted.org/packages/7f/c3/a6dfdc4848cfd4fb50e15e9449c439791a009638c2bd06b6fe6982d9afc1/cf2tf-0.9.2.tar.gz>
- **最后更新:** 2026-08-04T10:19:08Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cf2tf (cli)
- cf2tf (别名)

## 依赖

- certifi
- libyaml
- python@3.14

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.9.2
- 管理器更新时间: 2026-08-04
- 本地数据: OK
- 上游仓库: https://github.com/DontShaveTheYak/cf2tf
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 源数据库详情

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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [cfn-lint](https://pkg.so/zh-hans/brew/cfn-lint/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [aws-cdk](https://pkg.so/zh-hans/brew/aws-cdk/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [rain](https://pkg.so/zh-hans/brew/rain/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [terraform-local](https://pkg.so/zh-hans/brew/terraform-local/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cloudformation-cli](https://pkg.so/zh-hans/brew/cloudformation-cli/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [sceptre](https://pkg.so/zh-hans/brew/sceptre/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [org-formation](https://pkg.so/zh-hans/brew/org-formation/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [cfn-format](https://pkg.so/zh-hans/brew/cfn-format/) - Shares pkgdb curated category or tags: aws, cli, cloud-infrastructure, cloudformation, infrastructure-as-code.
- [aws-sso-util](https://pkg.so/zh-hans/brew/aws-sso-util/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, certifi, cli, cloud, cloud-infrastructure.

## Combined YAML source

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


## 来源

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