LoginSignup
20
13

More than 3 years have passed since last update.

CodeDeployでtask definitionが読み込めない時の対処法

Last updated at Posted at 2019-04-04

CodePipelineからCodeDeployを使用し、ECSのブルーグリーンデプロイメントを検証していたら「Exception while trying to read the task definition artifact file from: app-source」と出て失敗した。

サポートに問い合わせたところ、以下のように対応して欲しいと返ってきた。

  1. taskdef.json を含むアーティファクトのサイズを 3MB 未満にする
  2. ビルドステージにて taskdef.json と appspec.yml を含むアーティファクトを作成し、デプロイステージから このアーティファクトを参照するように CodePipeline の設定を変更する

CodePipelineのソースにはS3が選択できるので、S3にtaskdef.jsonとappspec.ymlをアップロードし、そこから渡すことで対応できる。

20
13
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
20
13