LoginSignup
0
0

More than 1 year has passed since last update.

AWS CDK deploy時 fail: No ECR repository が発生した

Posted at

発生した事象

cdk deploy --no-path-metadata --no-asset-metadata --debug

を実行した際に

Failed to publish one or more assets. See the error messages above for more information.

として失敗した.
内容を確認すると

fail: No ECR repository named 'cdk-hnb659fds-container-assets-***-***' in account ***. Is this account bootstrapped?

といったエラーも発生していた.

解決方法

  1. cdk bootstrap をすると作成されるCloudFormation スタック: CDKToolkit を削除する
    ※ 必要に応じて, アセットを出力するS3バケットを削除する
  2. cdk bootstrap を実行する

環境

  • CDK version: 2.32.1 (build 79cbe95)
  • /cdk-bootstrap/hnb659fds/version: 13
  • OS: Ubuntu 20.04.4 LTS

参考

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