#!/usr/bin/env bash
# CyberTwin export recipe: AWS IAM, one command.
# Read-only (needs iam:GetAccountAuthorizationDetails, e.g. the SecurityAudit
# managed policy). Writes one local file, sends nothing. Upload aws-iam.json at /upload.
# Command reviewed 2026-09-27 against
# https://docs.aws.amazon.com/cli/latest/reference/iam/get-account-authorization-details.html
set -euo pipefail
aws iam get-account-authorization-details --output json > aws-iam.json
echo "Wrote aws-iam.json. Upload it at /upload."
