pkg.soopen package index

brew / 排名 6141

使用 Homebrew, Nix 安装 iam-policy-json-to-terraform

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install iam-policy-json-to-terraform

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#iam-policy-json-to-terraform

nixpkgs package indexes · pkgs/by-name/ia/iam-policy-json-to-terraform/package.nix · 来源: api.github.com

概览

软件包摘要

Convert a JSON IAM Policy into terraform

命令和别名

  • iam-policy-json-to-terraform

历史

项目历史与用法

iam-policy-json-to-terraform is a small Go-based converter that turns AWS IAM policy JSON into Terraform aws_iam_policy_document HCL. It exists for the practical infrastructure-as-code chore of translating policies copied from AWS documentation, consoles, or existing files into Terraform-native data sources.

项目历史

The GitHub repository was created on April 28, 2018, and the changelog records version 1.0.0 on the same date as the initial release. That release read IAM policy JSON from standard input and wrote Terraform HCL to standard output, with support for core IAM policy properties such as Sid, Effect, Action, Resource, and Condition.

The project expanded through small, targeted releases: version 1.1.0 added Condition support with multiple values and a -name flag, version 1.2.0 added wildcard-principal support, version 1.6.0 improved conversion of heredoc-style policy input containing HCL expressions, and version 1.9.0 stopped generating empty sid entries when missing from input JSON.

采用历史

The README and project site present both a web version and a command-line version, which helped the tool serve quick one-off conversions as well as automation. GitHub repository metadata showed hundreds of stars by 2026, and the Homebrew formula packaged it as a CLI with macOS and Linux bottles.

Its adoption niche is Terraform users working with AWS IAM policies, especially when policy JSON comes from AWS examples or preexisting infrastructure and needs to become an aws_iam_policy_document block rather than a raw JSON blob.

使用方式

The README shows piping raw JSON into iam-policy-json-to-terraform or redirecting a policy file through standard input. The output is Terraform HCL for an aws_iam_policy_document data source.

The tool is deliberately narrow: it converts one policy representation into another. It does not manage AWS resources or run Terraform, which keeps it useful in scripts, editor workflows, and migration chores.

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

Package nerds care about this package as an example of a tiny IaC workflow tool that became useful enough for Homebrew and Nix packaging. Its value comes from removing a repetitive translation step rather than from being a platform.

时间线

  • 2018: Repository created and 1.0.0 released with stdin JSON to stdout HCL conversion.
  • 2018: 1.1.0 added multi-value Condition handling and a generated-policy name flag.
  • 2019: 1.2.0 added wildcard-principal support.
  • 2020: 1.6.0 improved conversion of heredoc input containing HCL expressions.
  • 2025: 1.9.0 changed missing Sid handling; 1.9.2 added a Linux ARM64 build target.

Related projects

  • The tool is directly related to Terraform, the AWS provider's aws_iam_policy_document data source, and AWS IAM JSON policy documents.
  • Adjacent tools include Terraform import and broader infrastructure converters, but this project intentionally focuses on IAM policy document conversion.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
iam-policy-json-to-terraform可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本1.9.2
管理器更新时间2026-07-26
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:iam-policy-json-to-terraform
版本1.9.2
软件包管理器Homebrew
主页https://flosell.github.io/iam-policy-json-to-terraform/
仓库https://github.com/flosell/iam-policy-json-to-terraform
最后更新2026-07-26T04:07:46+02:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

iam-policy-json-to-terraform

nix profile install nixpkgs#iam-policy-json-to-terraform
  • normalized package name match
  • 匹配方式:Iam Policy JSON To Terraform
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ia/iam-policy-json-to-terraform/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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