title: Amazon S3 copyObject permission
body: <p>I'v got user with all permissions.</p>
  
  <pre><code>{
    "Statement": [
      {
        "Effect": "Allow",
        "Action": "*",
        "Resource": "*"
      }
    ]
  }
  </code></pre>
  
  <p>I'm using aws-sdk-php-2 to put and copy objects in bucket.</p>
  
  <p><a href="http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.S3.S3Client.html" rel="noreferrer">http://docs.aws.amazon.com/aws-sdk-php-2/latest/class-Aws.S3.S3Client.html</a></p>
  
  <p>Put code works perfect</p>
  
  <pre><code>                $client-&gt;putObject(array(
                  'Bucket'     =&gt; 'kiosk',
                  'Key'        =&gt; 'test/orders/test.csv',
                  'SourceFile' =&gt; $sourcePath,
              ));
  </code></pre>
  
  <p>After check if object created on S3 via <a href="https://console.aws.amazon.com/s3" rel="noreferrer">https://console.aws.amazon.com/s3</a> I'm executing next script.</p>
  
  <pre><code>        $result = $client-&gt;copyObject(array(
          'Bucket' =&gt; 'kiosk',
          'CopySource' =&gt; 'test/orders/test.csv',
          'Key' =&gt; 'test/test.csv',
      ));
  </code></pre>
  
  <p>And I'm getting fatal error:</p>
  
  <pre><code>Fatal error: Uncaught Aws\S3\Exception\S3Exception: AWS Error Code: AllAccessDisabled, Status Code: 403, AWS Request ID: XXX, AWS Error Type: client, AWS Error Message: All access to this object has been disabled, User-Agent: aws-sdk-php2/2.2.1 Guzzle/3.3.1 curl/7.19.7 PHP/5.4.13 thrown in phar:///usr/share/pear/AWSSDKforPHP/aws.phar/src/Aws/Common/Exception/NamespaceExceptionFactory.php on line 89
  </code></pre>
  
  <p>After upload file manually console.aws.amazon.com/s3 I see different error when trying to copy:</p>
  
  <pre><code>Fatal error: Uncaught Aws\S3\Exception\AccessDeniedException: AWS Error Code: AccessDenied, Status Code: 403, AWS Request ID: XXX, AWS Error Type: client, AWS Error Message: Access Denied, User-Agent: aws-sdk-php2/2.2.1 Guzzle/3.3.1 curl/7.19.7 PHP/5.4.13 thrown in phar:///usr/share/pear/AWSSDKforPHP/aws.phar/src/Aws/Common/Exception/NamespaceExceptionFactory.php on line 89
  </code></pre>
  
  <p>I also try to set permissions on file and folder via <code>console.aws.amazon.com/s3</code>:
  Grantee: Everyone, Open/Download and View Permission and Edit Permission</p>
  
  <p>But still same error.</p>