(hotswap): Support for skipping resources in hotswap

Aperta
#895 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
aws, typescript

Direzione di ricerca

Inizia tracciando il punto di ingresso di hotswap e il modo in cui cdk diff e cdk deploy selezionano le risorse. Confronta il comportamento richiesto con il flusso di sviluppo hotswap esistente, usando AWS::Lambda::Function e Custom::CDKBucketDeployment come esempi per la whitelist. Il lavoro è completo quando hotswap può escludere tutte le altre risorse senza modificare il sistema di deployment CloudFormation esistente.

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

Descrizione

aws-cdk effort/medium feature-request p2
Maintainer's note

We are not planning to force this feature into the existing CloudFormation deployment system. However it is a perfectly fine addition to the hotswap development feature.

Treating this as a hotswap feature request.


Describe the feature

I'd like to see a CDK equivalent of this Pulumi feature.

Use Case

When managing both infrastructure and application code within the same stack and deploying through a single pipeline, certain challenges arise. For example, consider a monorepo where the CDK code is stored in a /cdk folder and the application code in a /app folder. If a developer modifies only the /app folder, the pipeline still triggers a cdk diff command. What's needed is a way to exclude all resources except for:

  • AWS::Lambda::Function
  • Custom::CDKBucketDeployment

This would allow developers to make application changes without affecting unrelated parts of the infrastructure. It also relieves them from the responsibility of managing infrastructure code directly. Even if configuration drift occurs in other resources, the deployment would only act on the whitelisted resources and ignore the rest. In a separate pipeline, the platform team could then run a full cdk diff and cdk deploy to reconcile and apply changes across the entire stack.

Proposed Solution

No response

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

Environment details (OS name and version, etc.)

Ubuntu 24.04

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.