title: AWS S3 permissions - error with put-bucket-acl
body: <p>I am trying to move an S3 bucket from one account (A) to another (B).
  I have succeeded with that operation and remove the bucket from account A.
  I am trying to move the new  bucket from account B to another bucket on account B, but learning that beside the bucket itself I have no access to the files.
  After much fighting with s3 cli and its permissions I checked <code>s3api</code> commands and found out that the files (surprise surprise) still holds the old ownership.
  I am trying now to change it, but came to a stand still with the <code>put-bucket-acl</code>, the JSON file isn't working for <code>s3api</code> command.
  I tried running the command in debug , but didn't make too much out of it.
  Anybody knows what to do ?
  Maybe a better way to solve this issue ?</p>
  
  <p>what I did so far:
  the command:</p>
  
  <pre><code>aws s3api put-bucket-acl --bucket my-bucket  --cli-input-json file://1.json
  </code></pre>
  
  <p>(Same with put-object-acl)</p>
  
  <p>1.json file:</p>
  
  <pre><code>"Grantee": {
  "DisplayName": "account_B",
  "EmailAddress": "user@mail.com",
  "ID": "111111hughalphnumericnumber22222",
  "Type": "CanonicalUser",
  "Permission": "FULL_CONTROL"
   }
  </code></pre>
  
  <p>The errors I get :</p>
  
  <blockquote>
    <p>Unknown parameter in input: "Grantee", must be one of: ACL,
    AccessControlPolicy, Bucket, ContentMD5, GrantFullControl, GrantRead,
    GrantReadACP, GrantWrite, GrantWriteACP Unknown parameter in input:
    "Permission", must be one of: ACL, AccessControlPolicy, Bucket,
    ContentMD5, GrantFullControl, GrantRead, GrantReadACP, GrantWrite,
    GrantWriteACP</p>
  </blockquote>
  
  <p>UPDATE:
  AssumeRole between the 2 accounts doesn't work in my case.
  cli (s3cmd,s3api) GUI (MCSTools,bucketexplorer), ACL using headers,body (Postman) did not help as well..
  I'm connecting AWS support and hoping for the best.
  I'll update when I have a solution. </p>