Skip to content

Instantly share code, notes, and snippets.

@ilyasahsan123
Created March 25, 2019 13:47
Show Gist options
  • Save ilyasahsan123/92fd0e35e5f61a856b0e0b6e4ef798f2 to your computer and use it in GitHub Desktop.
Save ilyasahsan123/92fd0e35e5f61a856b0e0b6e4ef798f2 to your computer and use it in GitHub Desktop.
version: 0.2
env:
variables:
INPUT_TEMPLATE: "appspec.yaml"
S3_BUCKET: "do-great-bucket"
phases:
install:
commands:
- wget https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
finally:
- echo INSTALL FINISH
build:
commands:
- python lambda_function_test.py
- aws cloudformation package --template $INPUT_TEMPLATE --s3-bucket $S3_BUCKET --output-template outputappspec.yaml
finally:
- echo BUILD FINISH
artifacts:
files:
- appspec.yaml
- outputappspec.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment