title: S3 objects deny access - These objects came from another account's AWS CodeBuild project
body: <p>(+)<br/>
  I just found a similar question and answer with help from petrch (thanks!) and being try to apply... <br/>
  <a href="https://stackoverflow.com/questions/60098329/codebuild-upload-build-artifact-to-s3-with-acl">CodeBuild upload build artifact to S3 with ACL</a></p>
  <hr />
  <p>I'm updating accountB's S3 bucket by accountA's CodeBuild project. <br/>
  A problem is, all the object from accountA's CodeBuild deny to access.</p>
  <p>My purpose is using this S3 bucket for static hosting.<br/>
  I set all requirements for static hosting and it's working fine when I uploaded simple index.html manually.</p>
  <p>But the individual object from accountA's CodeBuild project show below attached error. <br/>
  ex) index.html properties &amp; permission</p>
  <p>I checked the <code>Disable artifact encryption</code> option in the artifact setting in the CodeBuild project.<br/>
  and also on the override params,
  <code>encryptionDisabled: true</code></p>
  <p>This code build project is working fine when I save the output in the same account S3. <br/>
  (S3 static hosting site in AccountA is working well)<br/>
  But getting access issue in accountB's S3.</p>
  <p>Before try to touch KMS policy, I want to know if I missed some configurations in the CodeBuild.</p>
  <p>Please advice me what I have to do or missed...</p>
  <p>Thanks.</p>
  <p><a href="https://i.stack.imgur.com/OH6GR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OH6GR.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/9X9PZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9X9PZ.png" alt="enter image description here" /></a></p>