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
已提问 4 个月前240 查看次数
1 回答
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
专家
已回答 4 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则