(cli, toolkit-lib): add option to `deploy` that skips waiting for stack change completion.

オープン
#395 コメント 7 件 リアクション 4 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, typescript

調査の方向性

CDK Toolkit の deploy アクションから始め、既存の待機動作とスタック変更のポーリング動作を追跡します。deploy の完了とコマンドラインオプションを対象とするテストを特定します。--wait が現在のデフォルト動作を維持し、--no-wait がスタック変更が終端状態に到達するのを待たずに返ることが完了条件です。

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

説明

aws-cdk feature-request p2
Describe the feature

Add an option to the deploy action that lets users skip waiting for stack change completion.

Use Case

Today, stack deployments with the CDK always wait for the stack to enter a terminal state (e.g. CREATE_COMPLETE, UPDATE_COMPLETE, ROLLBACK_COMPLETE) before returning.

This can take a long time (read: hours) for traffic shifting deployments (e.g. CloudFormation rolling update for Auto Scaling groups, CodeDeploy Lambda alias canary deployments).

When used in CI, compute time is mostly spent polling for stack change completion. This can create issues with CI job timeouts and exhaust CI duration quotas or drive up costs.

CloudFormation already supports stack state change notifications with SNS topics. Ideally, users can trigger deployments with the AWS CDK and then rely on stack state change notifications to trigger post-deployment tasks (e.g. resume a CI workflow to run integration tests).

Proposed Solution

Add --wait (default, current behavior) and --no-wait flags which let users skip waiting for stack changes to complete.

Other Information

N/A

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
CDK version used

2.1010.0

Environment details (OS name and version, etc.)

Any

主要言語
TypeScript
スター
110
フォーク
138
平均マージ
1日 9時間
マージ済み PR(30日)
55

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/aws-cdk-cli のほかの issue

aws/aws-cdk-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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