AWS CodePipeline example as I can't build it

Is there anyone using AWS CodePipeline?

I’m having some issues in the build process …

how’s your buildspec.yml file look like? and how are you handling the build process on wp-content/themes/mytheme-sage as it’s a node environment, and then use AWS Deploy to EB?

my current file:

# 0.1 : shell for each command 
# 0.2 : shell keeps its settings
# https://stackoverflow.com/a/45115791/28004
version: 0.2 

phases:
  install:
    commands:
      - echo INSTALL started on `date`
      - cd wp-content/themes/sitecampaign-sage
      - echo `pwd`
      - npm install bower -g
      - npm install grunt -g
      - npm install gulp -g
      - echo INSTALL completed on `date`
  pre_build:
    commands:
      - echo PRE_BUILD started on `date`
      - echo `pwd`
      - bower -v
      - node -v
      - npm -v
      - gulp -v
      - gulp default
      - echo PRE_BUILD completed on `date`
  build:
    commands:
      - echo BUILD started on `date`
      - echo `pwd`
#      - gulp
      - echo BUILD completed on `date`
  post_build:
    commands:
      - echo POST_BUILD started on `date`
      - echo `pwd`
      - rm -rf node_modules
      - rm -rf bower_components
      - echo POST_BUILD completed on `date`
artifacts:
  files:
    - /**/*
  discard-paths: no

edited keep trying to run gulp but I always get an error:

Did anyone make sage work with AWS CodeDeploy part?