version: 0.2

phases:
  install:
    commands:
      - yum install -y zip
      - npm install -g serverless
  build:
    commands:
      - serverless --version
      - cd sample-app
      - mkdir deploy-artifacts
      - serverless package --package deploy-artifacts
      - cd deploy-artifacts && zip -r ../deploy-artifacts.zip ./*

artifacts:
  files:
    - deploy-artifacts.zip
  discard-paths: yes
  base-directory: sample-app
version: 0.2

phases:
  install:
    commands:
      - yum install -y zip
      - npm install -g serverless
  build:
    commands:
      - serverless --version
      - cd sample-app
      - mkdir deploy-artifacts
      - serverless package --package deploy-artifacts
      - cd deploy-artifacts && cp ../../deployspec.yml . && zip -r ../deploy-artifacts.zip ./*

artifacts:
  files:
    - deploy-artifacts.zip
  discard-paths: yes
  base-directory: sample-app
Update to move deploy spec to deploy pipeline stage
Update to move deploy spec to deploy pipeline stage
