aws / aws/aws-codedeploy-agent

Provide a way to run a cleanup script after a deployment error

オープン
#63 コメント 5 件 リアクション 14 件 担当者 0 名 GitHub で見る
feature-request
主要言語
Rust
スター
337
フォーク
195
平均マージ
10時間 54分
マージ済み PR(30日)
4

説明

CodeDeploy is missing a mechanism for doing cleanup after a deployment error. This could be implemented as another lifecycle event that is triggered only when a deployment fails for some reason. This reason could be e.g. a non-zero exit status of a hook script, a timeout or a user-triggered cancellation of the deployment.

The idea of this originates from [a more specific issue regarding ASG lifecycle scripts](https://github.com/awslabs/aws-codedeploy-samples/issues/42). In that case, an auto-scaling group is left in an unclean state after an error during a deployment.

One remotely similar mechanism for error handling is the `rescue` block in Ansible:
http://docs.ansible.com/ansible/playbooks_blocks.html

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、ここで説明されている CodeDeploy ライフサイクルイベントの動作と、リンクされている ASG ライフサイクルスクリプト issue 42 を読んでください。提案されている失敗ケース(hook エラー、タイムアウト、キャンセル)を、Ansible's rescue-block のリファレンスと比較してください。完了には、cleanup イベントと、それらの失敗ケース全体におけるその動作について合意された設計が必要です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws
領域
cloud, devops
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。