Converts AWS IAM policies from JSON format to Terraform aws_iam_policy_document HCL.
iam-policy-json-to-terraform is a conversion tool that takes AWS IAM policies in JSON format and outputs them as Terraform `aws_iam_policy_document` configurations. It solves the problem of manually rewriting IAM policies for Terraform, ensuring accuracy and consistency in infrastructure-as-code deployments.
DevOps engineers, cloud infrastructure developers, and SREs who use Terraform to manage AWS resources and need to integrate existing IAM policies into their Terraform codebase.
Developers choose this tool for its simplicity and reliability—it automates a tedious, error-prone task, supports both CLI and web interfaces for flexibility, and integrates seamlessly into existing workflows without dependencies.
Small tool to convert an IAM Policy in JSON format into a Terraform aws_iam_policy_document
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Eliminates manual rewriting errors by converting IAM JSON to Terraform HCL automatically, as shown in the CLI usage examples with precise syntax output.
Offers both a CLI for scripting and automation, and a web version for quick manual conversions, catering to diverse workflow needs without installation overhead.
Available via package managers like Homebrew and asdf, or direct binary downloads, ensuring quick setup on macOS, Linux, and other systems as documented.
Follows a single-purpose philosophy with a clean codebase and automated tests, indicated by the build status badge, ensuring focus on conversion reliability.
Only supports conversion to `aws_iam_policy_document` and may not handle all IAM policy elements or advanced Terraform configurations, requiring manual tweaks.
Does not check converted policies for AWS security best practices or Terraform schema errors, leaving validation entirely to the user or external tools.
The web frontend is plain HTML/JS/CSS with minimal features, lacking advanced UI elements like syntax highlighting or error feedback, as noted in development notes.