Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
issueURL
#123
Doneの定義
#123 の完了の定義を満たしていること
変更点概要
lgtm-cat-processor 本番用のリソースを追加。
補足情報
terraform applyを実行した際にエラーとなった。
apply自体は完了しているが、以下にエラーの詳細と回避方法をメモとして残す。
原因
Lambda 関数を作成する際に、ECR に latest タグのイメージが存在しなかったため、以下のエラーが発。
原因は下記のコード。
lgtm-cat-terraform/modules/aws/lgtm-image-processor/lambda.tf
Line 4 in 24f2ca9
回避策
まず、lgtm-cat-processor のデプロイを実行し、ECR にイメージをpush。
次にTerraform のコード内で latest タグを、ECR に push された実際のタグに一時的に変更し、再度 terraform apply を実行。