How to find/check current permissions in AWS S3 using cli?
<p>I'm quite happy with the speed of <a href="http://docs.aws.amazon.com/cli/latest/reference/s3/index.html" rel="noreferrer"><code>aws cli</code></a> But can't seem to find a way to find out what the permissions are on a file/folder.</p>

<p>E.g. I do:</p>

<pre><code>$ curl http://my.s3.amazonaws.com/deploy/tool1/license.key -o ./license.key
$ cat license.key | sed 's/&gt;&lt;/&gt;\n&lt;/g'
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Error&gt;
&lt;Code&gt;AccessDenied&lt;/Code&gt;
&lt;Message&gt;Access Denied&lt;/Message&gt;
&lt;RequestId&gt;E4D50F0606FFFD48&lt;/RequestId&gt;
&lt;HostId&gt;+xxxyyyaaaa=&lt;/HostId&gt;

$
$
</code></pre>

<p>Now <code>curl http://my.s3.amazonaws.com/deploy/tool1/tool.sh -o ./tool.sh</code> works just fine and I can get the <code>tool.sh</code>. So I suspect teh permissions on <code>license.key</code> to be the problem.</p>