title: AWS IAM - How to show describe policy statements using the CLI?
body: <p>How can I use the AWS CLI to show an IAM policy's full body including the Effect, Action and Resource statements? </p>
  
  <p>"aws iam list-policies" command lists all the policies but not the actual JSON E,A,R statements contained within the policy. </p>
  
  <p>I could use the "aws iam get-policy-version" command but this does not show the policy name in its output. When I am running this command via a script to obtain information for dozens of policies, there is no way to know which policy the output will belong to. </p>
  
  <p>Is there another way of doing this?</p>