in chalice/pipeline.py [0:0]
def create_buildspec_v2(pipeline_params):
# type: (PipelineParameters) -> Dict[str, Any]
install_commands = [
"pip install 'chalice%s'" % pipeline_params.chalice_version_range,
"pip install -r requirements.txt",
]
build_commands = [
"chalice package /tmp/packaged",
("aws cloudformation package --template-file /tmp/packaged/sam.json "
"--s3-bucket ${APP_S3_BUCKET} "
"--output-template-file transformed.yaml")
]
buildspec = {
"version": "0.2",
"phases": {
"install": {
"commands": install_commands,
"runtime-versions": {
"python": pipeline_params.py_major_minor,
}
},
"build": {
"commands": build_commands,
}
},
"artifacts": {
"type": "zip",
"files": [
"transformed.yaml"
]
}
}
return buildspec