AWS CDK Cloudformation Nested Stack rollback issue

0

I have a cdk created with several nested stack in the cloudformation, current facing a rollback issue where error is "Received response status [FAILED] from custom resource. Message returned: Error: An error occurred (InvalidArgument) when calling the PutBucketNotificationConfiguration operation: Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.. See the details in"

The s3 event notification was remove manually and now it is not able to proceed the rollback due to this issue, have try using cloudformation continue-update-rollback but yet still not able to rollback the resource, the Event notification and the lambda with the s3 trigger currently in "UPDATE_FAILED" status, may I know if anyone has any suggestion to resolve this without deleting the stack.

CY
preguntada hace 4 meses240 visualizaciones
1 Respuesta
0

Hi,

I'd suggest you to read https://forum.serverless.com/t/cannot-have-overlapping-suffixes-in-two-rules-if-the-prefixes-are-overlapping-for-the-same-event-type/15852/2

It is a use case highly similar to yours where a solution is provided

AWS doesn’t support multiple overlapping triggers for different lambdas. This means that 
you cannot create a trigger of “/my/path” twice for the same bucket and direct it to two 
lambdas (or “/my/path” and “/my/path/folder” to different lambdas).
This can be reproduced using the aws console, using the properties 
tab → Event notifications → Create event notification

The solution I used is to make the bucket notify a SNS message, which in turn,. triggers 
the lambda (and doesn’t have the same limitation)/

Best,

Didier

profile pictureAWS
EXPERTO
respondido hace 4 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas