- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuildspec.yml
More file actions
Latest commit
19 lines (17 loc) · 571 Bytes
/
Copy pathbuildspec.yml
File metadata and controls
19 lines (17 loc) · 571 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: 0.2
phases:
install:
commands:
# Install/upgrade pip and AWS CLI
- pip install --upgrade pip awscli
# Install the packages required
- pip install -r requirements.txt -t .
build:
commands:
# LAMBDA_ARTIFACT_STORE_BUCKET should be an environment variable in AWS::CodeBuild::Project
- aws cloudformation package --s3-bucket $LAMBDA_ARTIFACT_STORE_BUCKET --template-file template.yaml --output-template-file output-template.yaml
artifacts:
type: zip
files:
- template.yaml
- output-template.yaml