version: 0.1
phases:
  build:
    commands:
      - echo Compressing Lambda functions
      - for file in *; do zip -X "$file".zip "$file"; done
      - echo Starting S3 sync to $TEMPLATE_BUCKET
      - aws s3 sync . s3://$TEMPLATE_BUCKET --acl private --region $AWS_REGION --delete --exclude ".git/*" --exclude "buildspec.yml"
artifacts:
  files:
    - README.md

version: 0.1
phases:
  build:
    commands:
      - echo Compressing Lambda functions
      - for file in lambdas/*; do zip -X "$file".zip "$file"; done
      - echo Starting S3 sync to $TEMPLATE_BUCKET
      - aws s3 sync . s3://$TEMPLATE_BUCKET --acl private --region $AWS_REGION --delete --exclude ".git/*" --exclude "buildspec.yml"
artifacts:
  files:
    - README.md

Fix Codebuild zip command for lambdas
Fix Codebuild zip command for lambdas
