0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Github ActionsでCDK diff走らせると永遠に失敗する

Posted at

なんか失敗する

コメント 2020-05-14 112617.jpg

どうして

終了コードが1だからじゃないですかね

とっくにISSUE上がってクローズされてましたね
https://github.com/aws/aws-cdk/issues/5885

解決方法

コマンドにオプション付ける

差分があるときエラーになって欲しいケースの方が多くて、GithubActionsだけ0になってほしい人はこれ

cdk diff -c aws-cdk:enableDiffNoFail=true

cdk.jsonに書く

永遠に0しか出すなって人はこれ
今使ってるcdk.jsonにcontextを追記すると終了コード0がデフォルトになる

{
    "app": "python3 app.py",
    "context": {
      "aws-cdk:enableDiffNoFail": "true"
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?