aws-cloudformation / aws-cloudformation/cloudformation-cli-typescript-plugin

Provide stackId in ResourceHandlerRequest

Abierto
#59 1 comentario 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
46
Forks
18
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

It would be really useful to have the `stackId` in the `ResourceHandlerRequest` alongside the `logicalResourceIdentifier`. This also allows us to track where a resource is created so that if someone in a different stack tries to create the same resource we can provide an error saying that a different stack has it, and which one.

The ARN is available on create and update events in the `systemTags`, but not delete events. We need to tidy up our resource ownership registry when a resource is deleted so also need it at that point.

We've worked around its absence by copying chunks of this library into our own project and switching out the BaseResource for our own copy but it would be much easier if it were in the base library.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza rastreando ResourceHandlerRequest y BaseResource a través del plugin; después, compara cómo se expone la identidad del stack en los eventos de create, update y delete. Comprueba la ruta de systemTags para ver cómo se manejan actualmente los ARN. Se considera terminado cuando ResourceHandlerRequest proporciona stackId, incluso durante la eliminación, sin requerir que los consumidores copien la biblioteca base.

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

Evaluación

Stack tecnológico
aws, node.js, typescript
Área
backend-api-design
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.