IAM policy simulator

A free IAM tool that tells you whether a policy, or an existing identity, would allow a given action on a given resource, without doing anything.

In more detail

simulate-custom-policy judges a policy document you pass in; simulate-principal-policy judges every policy attached to an existing identity. You can supply condition values with --context-entries, and MatchedStatements shows which statement produced a decision. It only answers permission questions, not quotas, costs or missing resources.

Example

aws iam simulate-custom-policy --policy-input-list "$(cat scoped-deploy.json)" --action-names s3:GetObject s3:DeleteBucket --resource-arns arn:aws:s3:::site-bundles-prod/index.html

Related terms

Taught in

References