【发布时间】:2018-03-05 05:24:39
【问题描述】:
我刚刚创建了一个全新的 AWS Codestar 项目。
据我所知,Codestar 只是一个集成多个 AWS 产品的仪表板。
有一件事我还不知道如何配置,那就是分支部署。
在我的 git 存储库中,我有 3 个分支:master、develop 和 staging
在理想情况下,master 部署到生产环境,develop 部署到开发环境,staging 部署到 QA 环境。
我不知道如何使用 AWS 配置此管道,也无法在他们的开发人员门户中找到相关文档。
这是我的buildspec.yml 文件,以防万一它可以在那里配置:
version: 0.2
phases:
install:
commands:
- echo Installing NPM Packages...
- npm install
build:
commands:
- aws cloudformation package --template template.yml --s3-bucket $S3_BUCKET --output-template template-export.yml
artifacts:
type: zip
files:
- template-export.yml
这是一个使用 AWS API Gateway 将请求路由到 AWS Lambda 函数的项目(如果需要)。
【问题讨论】:
标签: amazon-web-services aws-api-gateway amazon-cloudformation aws-codestar