# 使用 Homebrew 安装 cf2tf

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cf2tf
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:cf2tf
- **软件包管理器:** Homebrew
- **版本:** 0.9.2
- **来源摘要:** Cloudformation templates to Terraform HCL converter
- **主页:** <https://github.com/DontShaveTheYak/cf2tf>
- **仓库:** <https://github.com/DontShaveTheYak/cf2tf>
- **最后更新:** 2026-07-25T09:54:11Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cf2tf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.9.2
## 项目历史与用法

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


## 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
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
