(deploy) cdk deploy: show outputs descriptions in --outputs-file output

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

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

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

評価

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

調査の方向性

実装ファイルやテストは指定されていません。まず cdk deploy --outputs-file の CLI 処理と既存の outputs のシリアライズを見つけ、次に生成中に stack output の説明がどのように利用可能になるかを確認してください。ドキュメント化されたオプションによって、現在のデフォルト形式を変更せずに提案された key/value/description 構造が出力され、両方のモードがカバレッジされていれば完了です。

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

説明

feature-request p2
Describe the feature

Currently, the cdk deploy --outputs-file outputs.json option enables writing the generated outputs to a file, in the format:

{ STACK_NAME: { KEY: VALUE } }

The information related to the description of the stack outputs items is lost.

It would be useful to keep this information, for example to auto-generate an UI starting from the outputs.

To do this, I suggest to extend the interface with another option, for example cdk deploy --outputs-file outputs.json --outputs-file-with-descriptions, generating the format:

{ STACK_NAME: [ {"key": KEY, "value": VALUE, "description": DESCRIPTION} ] }

In other words, each stack should contain a list of dictionaries with the key/value/description fields.

Currently it is not possible to get the description information, if not looking up in the cloudformation.

Use Case

The description field would be useful to convey the information of each output items in a human readable format.

For example you might use it to auto-generate a UI (either textual or graphical).

Currently it is possible to achieve this by querying cloudformation, but this implies more operations while this information should be already available when the outputs file is generated in the first place.

Proposed Solution

I suggest to extend the cdk deploy CLI with some new option.

It might either be:

cdk deploy --outputs-file outputs.json --outputs-file-with-descriptions

or:

cdk deploy --outputs-file outputs.json --outputs-file-mode include-descriptions

probably the latter being more extensible.

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.178

Environment details (OS name and version, etc.)

not relevant since it is OS independent

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