title: AWS S3 CLI:An error occurred (AllAccessDisabled) when calling the PutObject operation: All access to this object has been disabled
body: <p>I'm using aws-cli/1.15.25 Python/2.7.15 Darwin/17.7.0 botocore/1.10.25 to try and upload a file to S3 using the following command:</p>
  
  <pre><code>aws s3 cp &lt;file&gt; s3://bucket.s3.amazonaws.com/&lt;bucket name&gt;
  </code></pre>
  
  <p>But I get the following returned:</p>
  
  <p>u</p>
  
  <pre><code>pload failed: ./&lt;file&gt; to s3://bucket.s3.amazonaws.com/&lt;bucket name&gt; An error occurred (AllAccessDisabled) when calling the PutObject operation: All access to this object has been disabled
  </code></pre>
  
  <p>I have, as a test, set my bucket to accessible by all with the following policy:</p>
  
  <pre><code>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Principal": "*",
              "Effect": "Allow",
              "Action": [
                  "s3:PutObject",
                  "s3:GetObject",
                  "s3:PutObjectAcl",
                  "s3:GetObjectAcl"
              ],
              "Resource": [
                  "arn:aws:s3:::&lt;bucket name&gt;/*"
              ]
          }
      ]
  }
  </code></pre>
  
  <p>My IAM user has the correct permissions set</p>
  
  <p>I don't know what else to look at. I've Googled and tried most suggestions</p>