(hotswap): CLI --hotswap fails with RDS Databases in the stack

Abierto
#1,435 2 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
aws, docker, typescript
Área
cli, cloud, databases

Línea de trabajo

Empieza reproduciendo el problema con un contenedor ECS Fargate y una AWS::RDS::DBInstance en el mismo stack; después, sigue la ruta de despliegue hotswap de la CLI donde se resuelve la plantilla de CloudFormation. Se considera terminado cuando una imagen de contenedor modificada se despliega correctamente con --hotswap, mientras la base de datos RDS se ignora y se deja intacta.

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

Descripción

bug effort/medium
Describe the bug

cdk deploy --hotswap is not working when an RDS Database is part of the stack.

Following message occurs in the output:
Could not perform a hotswap deployment, because the CloudFormation template could not be resolved: We don't support attributes of the 'AWS::RDS::DBInstance' resource.

Note: there are no changes to the database inside of the cdk code used. Only the container image was changed.

Regression Issue
  • Select this option if this issue appears to be a regression.
Last Known Working CDK Library Version

No response

Expected Behavior

Container running with new image after the --hotswap deployment.
RDS Database should be ignored and not touched

Current Behavior

Image was build and uploaded.
cdk deploy --hotswap finishes with errors.
Old container images are still running (no new deployments)

Reproduction Steps
  1. Create a stack with ECS Fargate container and a RDS Database inside.
  2. Change something in the Dockerfile for the container
  3. Run cdk deploy --hotswap
Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.223.0

AWS CDK CLI version

2.1032.0

Node.js Version

20.18.3

OS

RHEL 9.4

Language

TypeScript

Language Version

No response

Other information

No response

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.