title: An error occurred (AccessDenied) when calling the PutObject operation: Access Denied
body: <p>I'm getting an error when packaging the application to an s3 bucket, I'm executing this line with codepipeline and aws code build:</p>
  
  <pre><code>aws cloudformation package --template-file serverless.template --s3-bucket dev-btnext-1 
                                 --output-template-file NewSamTemplate.yaml
  </code></pre>
  
  <p>That command is specified on the buildspec.yml</p>