2
我剛創建了一個全新的AWS Codestar項目。在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網關將請求路由到AWS lambda函數,如果該事項的項目。