{{ }} Substitute variables
Adjust the variable values according to your preference.
Policy Code
Referenced from: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_iam_policy-sim.html
1{
2 "Version": "2012-10-17",
3 "Statement": [
4 {
5 "Action": [
6 "iam:GetContextKeysForCustomPolicy",
7 "iam:GetContextKeysForPrincipalPolicy",
8 "iam:SimulateCustomPolicy",
9 "iam:SimulatePrincipalPolicy"
10 ],
11 "Effect": "Allow",
12 "Resource": "*"
13 }
14 ]
15}
DOC
Attach this policy to a user, group, or role in the account you wish to enable Policy Simulator API access.