Skip to content

Instantly share code, notes, and snippets.

@bishopb
Created January 7, 2021 18:11
Show Gist options
  • Save bishopb/6fa36cb017235e95eec127542a7ed7a5 to your computer and use it in GitHub Desktop.
Save bishopb/6fa36cb017235e95eec127542a7ed7a5 to your computer and use it in GitHub Desktop.
Show all AWS actions, resources, and conditions known to AWS Policy Generator

Looking for a structured list of AWS actions, resources, and conditions? Tired of hunting through the AWS Documentation?

Then just use this simple script.

For example:

aws-arc.sh '.serviceMap["AWS Accounts"]'
{
  "StringPrefix": "account",
  "Actions": [
    "DisableRegion",
    "EnableRegion",
    "ListRegions"
  ],
  "conditionKeys": [
    "account:TargetRegion"
  ],
  "HasResource": false
}

Warning: This only includes services that AWS IAM Policy Generator knows about. As of this writing, these are known to be missing:

  • AWS Portal
  • Savings Plan
#!/bin/sh
curl -sSLo- https://awspolicygen.s3.amazonaws.com/js/policies.js | cut -f2 -d= | jq "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment