当我尝试使用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发布于 2019-12-25 22:17:29
您注意到的问题是因为“创建或替换更改集”和“执行更改集”这两个操作都已在阶段“Deploy”中添加到相同的Action Group中,这将在更改集创建和执行之间创建一个竞争条件。若要解决此问题,请创建一个新的操作组,并将“execute-changeset”添加到该新的操作组。
发布于 2021-05-15 02:17:30
如果有人遇到此问题,只需在操作中添加"runOrder“,1表示replace o create changeset,2表示执行changeSet
https://stackoverflow.com/questions/59476032
复制相似问题