Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: 0.2
- #env:
- # variables:
- # FUNCTION: "arn:aws:lambda:us-east-1:619094005353:function:Test"
- phases:
- install:
- runtime-versions:
- python: 3.8
- pre_build:
- commands:
- - echo Build enviromment `uname -a` `aws --version 2>&1` `python --version`
- - echo Started build at `date`
- - pip install -r requirements.txt -t .
- #- mkdir /tmp/
- - rm buildspec.yml .gitignore
- - mv sam.yaml /tmp/
- build:
- commands:
- - echo Building at `date`
- - zip -r /tmp/output.zip *
- - aws cloudformation package --template-file /tmp/sam.yaml --s3-bucket $S3_BUCKET --output-template-file template.yaml
- post_build:
- commands:
- - echo Finished build at `date`
- artifacts:
- files:
- - template.yaml
- discard-paths: yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement