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

Đang mở
#1,440 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
aws, typescript
Lĩnh vực
cli, cloud

Hướng nghiên cứu

Không có tệp triển khai hoặc bài kiểm thử nào được nêu tên. Hãy bắt đầu bằng cách tìm phần xử lý CLI cho cdk deploy --outputs-file và cơ chế tuần tự hóa outputs hiện có, sau đó xác định cách các mô tả output của stack có sẵn trong quá trình tạo. Được xem là hoàn tất khi một tùy chọn được ghi rõ trong tài liệu xuất ra cấu trúc key/value/description được đề xuất mà không thay đổi định dạng mặc định hiện tại, với phạm vi kiểm thử cho cả hai chế độ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
110
Fork
138
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
55

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của aws/aws-cdk-cli

Tất cả issue của aws/aws-cdk-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.