# terraform-iam-policy-validator mit Homebrew, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für terraform-iam-policy-validator in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:terraform-iam-policy-validator
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install terraform-iam-policy-validator
```

  Evidenz: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terraform-iam-policy-validator
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/te/terraform-iam-policy-validator/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:terraform-iam-policy-validator
- **Paketmanager:** Homebrew
- **Version:** 0.0.9
- **Quellzusammenfassung:** CLI to validate AWS IAM policies in Terraform templates for best practices
- **Homepage:** <https://github.com/awslabs/terraform-iam-policy-validator>
- **Zuletzt aktualisiert:** 2026-05-15T11:14:03Z
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- tf-policy-validator (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 0.0.9
## Projektgeschichte und Nutzung

terraform-iam-policy-validator is an AWS Labs security CLI, installed as `tf-policy-validator`, that checks IAM policies extracted from Terraform plan output with IAM Access Analyzer validation and custom policy checks.

### Projektgeschichte

The awslabs/terraform-iam-policy-validator repository was created on GitHub in August 2022. Its README describes a command-line tool that parses Terraform templates for IAM identity-based and resource-based policies, then runs them through IAM Access Analyzer policy validation checks and optional custom policy checks.

### Adoptionsgeschichte

The project is narrower than general Terraform linters because it focuses specifically on AWS IAM policy semantics. The input package facts list Homebrew and Nix packaging, while the official README documents Python installation with `pip install tf-policy-validator`, indicating use both as a Python CLI and as a packaged security tool.

### Wie es verwendet wird

The documented workflow is to run Terraform, convert a plan to JSON with `terraform show -json`, and pass that file to `tf-policy-validator validate` with an AWS region and config file. The tool can fail a pipeline when findings of selected severity levels are treated as blocking.

The README also documents custom checks for no-new-access, access-not-granted, and no-public-access. Because those checks call AWS IAM Access Analyzer APIs through boto3, the tool uses normal AWS credential resolution, including environment variables, shared credentials, AWS config, assume-role providers, and EC2 instance metadata.

### Warum Paket-Nerds sich dafür interessieren

For package-manager users, terraform-iam-policy-validator represents the compliance side of Terraform packaging: it is a standalone executable meant to be dropped into CI after `terraform plan`, with policy behavior controlled by command flags and config files. Its importance is strongest in AWS-heavy shops that want IAM policy review before apply.

### Zeitleiste

- 2022: GitHub repository created.
- 2024: v0.0.6 and v0.0.7 releases published.
- 2024: v0.0.8 release added custom-check changes including check-no-public-access.
- 2025: v0.0.9 listed as the latest GitHub release during research.

### Related projects

- The README ties the tool to AWS IAM Access Analyzer, boto3 credential handling, Terraform plan JSON, and AWS sample material for IAM Access Analyzer custom policy checks.

### Quellen

- <https://api.github.com/repos/awslabs/terraform-iam-policy-validator>
- <https://github.com/awslabs/terraform-iam-policy-validator#readme>
- <https://github.com/awslabs/terraform-iam-policy-validator/releases>
- source_facts.package-manager


## Sicherheitshinweise

Für terraform-iam-policy-validator wurde kein passendes lokales Secret-Handling-Manifest gefunden. Nucleus-Paketmetadaten bleiben hier veröffentlicht, damit künftige Abdeckung eine stabile Paket-URL hat.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: ~/.aws/credentials, ~/.aws/config
## Andere Paketmanager-Einträge

- Nix - terraform-iam-policy-validator: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terraform-iam-policy-validator/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/terraform-iam-policy-validator.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terraform-iam-policy-validator.yml)


## Quellen

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