title: how do we update an already existing iam policy with a new json file using aws cli commands
body: <p>How do we update an already existing iam policy with a new json file using aws cli commands?</p>
  
  <p>I already have a policy named mypolicy. I want to update this policy with a new json file (which has access to different resources). How do I perform this using aws cli command?</p>
  
  <p>I tried to find the cli command. I found the command below from an AWS page:</p>
  
  <pre><code>aws organizations update-policy \
      --policy-id p-examplepolicyid111 \
      --content "{\"Version\":\"2012-10-17\",\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"*\"}}"
  </code></pre>
  
  <p>However, with this command I did not find any way to replace the policy with new json.</p>