How to view the contents of an IAM policy

Use the below command to retrieve information about an IAM managed policy where ‘arn:aws:iam::123456789123:policy/POLICYNAME’ is the arn of the policy.

aws iam get-policy --policy-arn arn:aws:iam::123456789123:policy/POLICYNAME
See also  How to change Quota allocated to a Schema in Redshift database