AWS CodeBuild

AWS CodeBuild uses a buildspec.yml file

  
version: 0.2
phases:
  install:
    commands:
      - echo Entered the install phase...
    finally:
      - echo This always runs even if the update or install command fails 
  pre_build:
    commands:
      - echo Nothing to do in the pre_build phase...
  build:
    commands:
      - echo Build started on `date`
  post_build:
    commands:
      - echo Build completed on `date`
 

AWS Code Commit for storing files in repository and then use AWS Code Build and tie it all together via AWS Code Pipeline so whenever there is a committhen a build will occur