Skip to content

Instantly share code, notes, and snippets.

@mattgillard
Created December 7, 2021 00:01
Show Gist options
  • Save mattgillard/a78cbd6c4b2edeb82c04d9fa716d63b2 to your computer and use it in GitHub Desktop.
Save mattgillard/a78cbd6c4b2edeb82c04d9fa716d63b2 to your computer and use it in GitHub Desktop.
simulate-principal-policy example
aws --region=us-east-1 iam simulate-principal-policy \
--context-entries ContextKeyName=aws:RequestedRegion,ContextKeyValues=us-east-1,ContextKeyType=string \
--policy-source-arn=arn:aws:iam::123456789:role/OrganizationAccountAccessRole \
--action-names s3:PutObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment