0
1

More than 3 years have passed since last update.

CDK Pipelines 作ったけどSynthがうまくいかない

Posted at

環境

  • aws-cdk 1.96.0

事象・経緯

ローカル環境から、cdk deploy を行い、成功。
自動化するためにCDK Pipelinesを作成したのに

User: arn:aws:sts::xxxxxxxxx:assumed-role/HOGEHOGE/PIYOPIYO is not authorized to perform: cloudformation:GetTemplate on resource: 

のようなエラーで落ちる。試しにadmin権限をcodebuildのroleにあてても、 not authorized の文字・・・。
そんな中検索していたら以下の解決策が。

解決

cdk.json に、以下のように context の中に "@aws-cdk/core:newStyleStackSynthesis": "true" を追加する。

cdk.json
  "context": {
    "@aws-cdk/core:newStyleStackSynthesis": "true"
  }
0
1
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
1