AWSIaC

AWS CDKをバージョンアップしてみる(windows)

AWS

aws cdkを利用していて、初回のcdk boorstrapしようとしたら以下のエラーがでてバージョンアップしろと怒られました。なのでバージョンアップしてみます。

ちなみにwindowsにインストールしているaws cdkです。

(.venv) C:\xxx>cdk --profile uw2 bootstrap
This CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version.
(Cloud assembly schema version mismatch: Maximum schema version supported is 8.0.0, but found 14.0.0)

AWS CDKのバージョンアップ

// バージョンアップ前
(.venv) C:\xxx>cdk --version
1.84.0 (build 866c8dc)

// バージョンアップ実施
(.venv) C:\xxx>npm update -g aws-cdk

// バージョンアップ後
(.venv) C:\xxx>cdk --version
1.122.0 (build ae09c16)

バージョンアップ後に再度実行したらうまくいきました。

(.venv) C:\Project\xxx>cdk --profile uw2 bootstrap
 ⏳  Bootstrapping environment aws://xxxxxx/us-west-2...
CDKToolkit: creating CloudFormation changeset...
  0/3 |14:50:29 | REVIEW_IN_PROGRESS   | AWS::CloudFormation::Stack | CDKToolkit User Initiated
  0/3 |14:50:34 | CREATE_IN_PROGRESS   | AWS::CloudFormation::Stack | CDKToolkit User Initiated
  0/3 |14:50:38 | CREATE_IN_PROGRESS   | AWS::S3::Bucket       | StagingBucket
  0/3 |14:50:39 | CREATE_IN_PROGRESS   | AWS::S3::Buck

今回は以上となります。

コメント

タイトルとURLをコピーしました