How to change permission recursively to folder with AWS s3 or AWS s3api : <p>I am trying to grant permissions to an existing account in s3.</p>

<p>The bucket is owned by the account, but the data was copied from another account's bucket.</p>

<p>When I try to grant permissions with the command:</p>

<pre><code>aws s3api put-object-acl --bucket &lt;bucket_name&gt; --key &lt;folder_name&gt; --profile &lt;original_account_profile&gt; --grant-full-control emailaddress=&lt;destination_account_email&gt;
</code></pre>

<p>I receive the error:</p>

<pre><code>An error occurred (NoSuchKey) when calling the PutObjectAcl operation: The specified key does not exist.
</code></pre>

<p>while if I do it on a single file the command is successful.</p>

<p>How can I make it work for a full folder?</p>
