Converting IAM Policy Syntax to IAMbic YAML
IAMbic provides a Policy Converter that allows you to convert AWS IAM Policies to IAMbic-compatible YAML and vice versa.
This tool is available both as a command-line interface (CLI) using iambic convert and a web tool at
https://www.iambic.org/tools/policy-converter.
How to use
CLI
Convert AWS IAM Policies to IAMbic-compatible YAML
- Open your terminal.
- Run the command
iambic convert. This will open your default text editor. - Paste the AWS IAM policy JSON that you want to convert into the editor.
- Save and close the editor.
- The converted IAMbic-compatible YAML will be printed in the terminal.
Convert IAMbic-compatible YAML to AWS IAM Policies
- Open your terminal.
- Run the command
iambic convert. This will open your default text editor. - Paste the IAMbic-compatible YAML that you want to convert into the editor.
- Save and close the editor.
- The converted AWS IAM policy JSON will be printed in the terminal.
Web Tool
Convert AWS IAM Policies to IAMbic-compatible YAML
- Navigate to https://www.iambic.org/tools/policy-converter in your web browser.
- Paste the AWS IAM policy JSON into the editor labeled "JSON".
- The converted IAMbic-compatible YAML will automatically appear in the "IAMbic-compatible YAML" editor.
Convert IAMbic-compatible YAML to AWS IAM Policies
- Navigate to https://www.iambic.org/tools/policy-converter in your web browser.
- Paste the IAMbic-compatible YAML into the editor labeled "IAMbic-compatible YAML".
- The converted AWS IAM policy JSON will automatically appear in the "JSON" editor.
Using IAM Policy Simulator or AWS Policy Generator
You can directly paste IAM policies from the IAM Policy Simulator or AWS Policy Generator into the IAMbic Policy Converter to convert them. Simply follow the steps above for converting AWS IAM Policies to IAMbic-compatible YAML or vice versa.