Output Formats

iamatic supports three output formats. Use the -o flag to choose.

Text-o text

Human-readable output with grouping by AWS service

IAM (3 actions)
  s3:GetObject
  s3:ListBucket
  sts:AssumeRole

Total: 3 unique IAM actions across 2 services
JSON-o json

Structured output for programmatic use

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "s3:GetObject",
      "s3:ListBucket",
      "sts:AssumeRole"
    ],
    "Resource": "*"
  }]
}
Terraform-o terraform

Generate ready-to-use Terraform HCL

resource "aws_iam_role" "deployer" {
  name = "tf-deployer"
  assume_role_policy = jsonencode({...})
}

resource "aws_iam_policy" "deployer_policy" {
  name = "tf-deployer-policy"
  policy = jsonencode({...})
}

When to Use Each Format

Text

Human review, terminal output, quick debugging

JSON

Scripting, CI/CD pipelines, programmatic integration

Terraform

Regeneration, refactoring, creating deployer roles