title: How do I use the aws cli to set permissions on files in an S3 bucket?
body: <p>I am new to the aws cli and I've spent a fair amount of time in the <a href="http://docs.aws.amazon.com/cli/latest/reference/s3/index.html#cli-aws-s3" rel="noreferrer">documentation</a> but I can't figure out how to set permissions on files after I've uploaded them. So if I uploaded a file with:</p>
  
  <p><code>aws s3 cp assets/js/d3-4.3.0.js s3://example.example.com/assets/js/</code></p>
  
  <p>and didn't set access permissions, I need a way to set them. Is there an equivalent to <code>chmod 644</code> in the aws cli?</p>
  
  <p>And for that matter is there a way to view access permission?</p>
  
  <p>I know I could use the <code>--acl public-read</code> flag with <code>aws s3 cp</code> but if I didn't, can I set access without repeating the full copy command?</p>