title: how to have successful deploy in AWS pipline with artifacts
body: <p>When I try to deploy my project with pipleline, some times I am getting below failer. 
  Can you advice me what is wrong?</p>
  
  <p><a href="https://i.stack.imgur.com/rS3g2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rS3g2.png" alt="enter image description here"></a></p>
  
  <p>Action execution failed due:</p>
  
  <pre><code>Action execution failed
  ChangeSet [abc-changeset] does not exist (Service: AmazonCloudFormation; Status Code: 404; Error Code: ChangeSetNotFound; Request ID: f49ef4e7-6971-4ea1-9467-05c2213c7bc4)
  </code></pre>
  
  <p>and after press retry problem will solve. would you mind help me to fix it?
  <a href="https://i.stack.imgur.com/TTh4X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TTh4X.png" alt="enter image description here"></a></p>
  
  <p>my buildspec.yml is as below:</p>
  
  <pre><code>version: 0.2
  phases:
    install:
      runtime-versions:
        nodejs: 12
    pre_build:
      commands:
        - echo Install source NPM dependencies...
        - npm install
    build:
      commands:
        - export BUCKET=abc_bucket
        - echo copy file to S3 bucket...
        - aws s3 cp openapi.yml s3://abc_bucket/openapi.yml
        - echo packaging files by using cloudformation...
        - aws cloudformation package --template-file template.yml --s3-bucket $BUCKET --output-template-file outputtemplate.yml
  artifacts:
    type: zip
    files:
      - template.yml
      - outputtemplate.yml
  </code></pre>