title: AWS CodeBuild Error while copying file from S3 - COMMAND_EXECUTION_ERROR: Reason: exit status 1 (NodeJS)
body: <p>I am getting this error while trying to copy a file from <code>S3</code> bucket to the build artifacts, post build.</p>
  <p>My build phase error logs says:
  <strong>COMMAND_EXECUTION_ERROR: Error while executing command:</strong> <code>aws s3 cp &quot;s3://bucket/config.json&quot; &quot;config.json&quot;. Reason: exit status 1</code></p>
  <p>Here's my BuildSpec:</p>
  <pre><code>version: 0.2
  
  phases:
    install:
      commands:
      - npm install
    build:
      commands:
        - npm run build
    post_build:
      commands:
        - aws s3 cp &quot;s3://bucket/config.json&quot; &quot;config.json&quot;
  </code></pre>