(diff): provide an option to detect drift in cdk diff

オープン
#1,204 コメント 3 件 リアクション 3 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

まず、--change-set を有効にした cdk diff コマンドと cdk drift コマンドを追跡し、それぞれがどのように差分を取得するかを比較します。--drift-aware オプションが template drift と resource drift の結果をどのように組み合わせるべきかを定義し、次に cdk diff --drift-aware が既存のコマンドを変更せずに両方の種類の差分を報告することを確認します。

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

説明

@aws-cdk/cloudformation-diff feature-request p2
Describe the feature

Adds an option to detect differences between templates and drift differences simultaneously (e.g., --drift-aware).

Use Case

In CloudFormation, there are two types of differences: diff (difference between the template managed by the Stack and the synthesized template) and drift (difference between the template managed by the Stack and the actual resources).

Currently, CDK requires using two commands, cdk diff and cdk drift, to check these differences respectively. However, this often leads to oversight, and beginners, in particular, may not even be aware of the existence of drift.

Proposed Solution

Provide an option to detect drift when detecting differences between templates.

Example API may look like:

cdk diff <stack-name> --drift-aware

However, the --change-set option must be enabled.

Other Information

No response

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

2.1109.0

Environment details (OS name and version, etc.)

All

主要言語
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 を短くまとめたダイジェスト。