# terracognita を Homebrew, Nix でインストール

terracognita のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:terracognita
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install terracognita
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terracognita
```

  証拠: nixpkgs package indexes: pkgs/by-name/te/terracognita/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:terracognita
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.8.4
- **ソース概要:** Reads from existing Cloud Providers and generates Terraform code
- **ホームページ:** <https://github.com/cycloidio/terracognita>
- **リポジトリ:** <https://github.com/cycloidio/terracognita>
- **最終更新:** 2026-07-26T00:50:35+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- terracognita (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.8.4
## プロジェクトの歴史と使われ方

TerraCognita is Cycloid's reverse-Terraform tool: it reads existing cloud infrastructure and generates Terraform HCL and/or Terraform state. Its history tracks the practical DevOps problem of bringing already-existing AWS, Google Cloud, AzureRM, and vSphere resources under infrastructure-as-code management.

### プロジェクトの歴史

The repository was created in February 2019. In the README, Cycloid explains that infrastructure as code was part of the company's practice and that TerraCognita was built to help customers convert existing cloud infrastructure into Terraform code automatically, relying on community Terraform providers.

Early releases expanded the importer beyond its initial AWS-oriented base. Release notes show v0.3.0 adding multiple Google resources, v0.4.0 adding AzureRM support and targeted import, and v0.6.0 adding AWS profile/config support, session-token authentication, interpolation controls, HCL2 work, and Homebrew support.

Later development focused on keeping pace with provider APIs and larger resource catalogs. The changelog documents broad Azure additions, Terraform 1.1.9 and provider updates in the 0.7.x line, vSphere support and many GCP/AWS resources in v0.8.0, and AzureRM fixes and additions through v0.8.4.

### 採用の歴史

The README documents binary releases, source builds, AUR packages, Homebrew installation, and Docker usage through the `cycloid/terracognita` image. It also describes InfraImport inside Cycloid as the visual representation of TerraCognita, making the CLI both a standalone package and part of Cycloid's platform workflow.

### 使われ方

The main CLI form is `terracognita [TERRAFORM_PROVIDER] [--flags]`, where users choose a provider such as `aws`, pass provider-specific flags, and emit Terraform HCL, modules, and/or state files. The README documents include/exclude filters by Terraform resource name, module generation, Docker execution with cloud credentials passed through the environment, and follow-up `terraform init` and `terraform plan` checks.

### パッケージ好きにとっての重要性

For infrastructure package nerds, TerraCognita is notable because it packages a moving target: it embeds assumptions about Terraform, provider versions, cloud SDK behavior, generated HCL, and state output. Package managers expose it as a single CLI, but maintainers care about the bundled provider matrix and how quickly it tracks Terraform ecosystem churn.

### タイムライン

- 2019: GitHub repository created.
- 2019: v0.1.6 release added version reporting, CI/CD, prebuilt binaries, and automated GitHub/Docker releases.
- 2019: v0.2.0 moved TFState output to Terraform 0.12 format.
- 2020: v0.4.0 added AzureRM provider support.
- 2020: v0.6.0 added AWS profile/config support, session-token authentication, HCL2-related fixes, and Homebrew support.
- 2022: v0.8.0 added vSphere provider support and expanded AWS/GCP/Azure resource coverage.
- 2023: v0.8.4 added AzureRM resources and fixes for generated HCL maps and cyclic dependencies.

### Related projects

- The README lists TerraCognita alongside Cycloid's InfraMap, which reads Terraform state or HCL to generate provider-specific graphs, and TerraCost, a Terraform-oriented cloud cost estimation CLI.
- It is adjacent to Terraform import workflows and tools that inventory existing cloud accounts before migrating to infrastructure as code.

### ソース

- <https://api.github.com/repos/cycloidio/terracognita>
- <https://api.github.com/repos/cycloidio/terracognita/releases?per_page=100>
- <https://github.com/cycloidio/terracognita>
- <https://raw.githubusercontent.com/cycloidio/terracognita/master/CHANGELOG.md>
- <https://raw.githubusercontent.com/cycloidio/terracognita/master/README.md>
- source_facts.package-manager


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal

## 他のパッケージマネージャ記録

- Nix - terracognita: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terracognita/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

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