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

Aperta
#1,440 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
aws, typescript
Ambito
cli, cloud

Direzione di ricerca

Non sono indicati file di implementazione né test. Inizia individuando la gestione CLI di cdk deploy --outputs-file e la serializzazione esistente degli outputs, quindi determina come sono disponibili le descrizioni degli outputs degli stack durante la generazione. Il lavoro è completato quando un’opzione documentata emette la struttura proposta key/value/description senza modificare il formato predefinito corrente, con copertura per entrambe le modalità.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
TypeScript
Stelle
110
Fork
138
Merge medio
1g 9h
PR unite (30g)
55

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aws/aws-cdk-cli

Tutte le issue di aws/aws-cdk-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.