cdk deploy: show outputs descriptions in --outputs-file output #33364
Labels
@aws-cdk/aws-cloudformation
Related to AWS CloudFormation
@aws-cdk/core
Related to core CDK functionality
cli
Issues related to the CDK CLI
feature-request
A feature should be added or improved.
p3
Describe the feature
Currently, the
cdk deploy --outputs-file outputs.json
option enables writing the generated outputs to a file, in the format: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: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:
or:
probably the latter being more extensible.
Other Information
No response
Acknowledgements
CDK version used
2.178
Environment details (OS name and version, etc.)
not relevant since it is OS independent
The text was updated successfully, but these errors were encountered: