当我尝试使用pipleline部署项目时,有时我会失败。 你能告诉我什么地方不对吗?
操作执行失败,原因是:
action execution failed
ChangeSet [abc-changeset] does not exist (Service: AmazonCloudFormation; Status Code: 404; Error Code: ChangeSetNotFound; Request ID: f49ef4e7-6971-4ea1-9467-05c2213c7bc4)
我的buildspec.yml如下:
version: 0.2
phases:
install:
runtime-versions:
nodejs: 12
pre_build:
commands:
- echo Install source NPM dependencies...
- npm install
build:
commands:
- export BUCKET=abc_bucket
- echo copy file to S3 bucket...
- aws s3 cp openapi.yml s3://abc_bucket/openapi.yml
- echo packaging files by using cloudformation...
- aws cloudformation package --template-file template.yml --s3-bucket $BUCKET --output-template-file outputtemplate.yml
artifacts:
type: zip
files:
- template.yml
- outputtemplate.yml