(hotswap): Support for skipping resources in hotswap

Abierto
#895 9 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
aws, typescript

Línea de trabajo

Empieza rastreando el punto de entrada de hotswap y cómo cdk diff y cdk deploy seleccionan los recursos. Compara el comportamiento solicitado con el flujo de desarrollo de hotswap existente, usando AWS::Lambda::Function y Custom::CDKBucketDeployment como ejemplos de la whitelist. La tarea estará terminada cuando hotswap pueda excluir todos los demás recursos sin cambiar el sistema de despliegue de CloudFormation existente.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
110
Forks
138
Merge medio
1 d 9 h
PR fusionados (30 d)
55

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de aws/aws-cdk-cli

Todos los issues de aws/aws-cdk-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.