Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDK resources defined within Nested Stacks does not show meaningful errors when deploying #7699

Closed
akrsmv opened this issue Apr 30, 2020 · 2 comments
Assignees
Labels
bug This issue is a bug. duplicate This issue is a duplicate. in-progress This issue is being actively worked on. p2

Comments

@akrsmv
Copy link

akrsmv commented Apr 30, 2020

I am using dotnet core CDK facade, but I believe bug is reproducible also in typescript.

When using using nested stacks, if there is an error deploying it is not propagated to the aws /stack/events tab, nor it is visible from the cdk cli output.

How I got there - I am using SNS with SQS subscription filters and my team is doing environment per developer. So with 7 stacks and around 30 subscriptions per stack in the same region, we easily reached the 200 subscription filter limit.

However, because all lambda constructs that have their subscription filters defined, are in a nested stack error was not visible.

It was only visible when I moved the constructs into the main stack and redeployed again. Then I saw the meaningful error.

Reproduction Steps

create more than 200 queues subscribed to an SNS topics (not necessary the same SNS topic) with subscription filters.

  • Define them in a Stack --> you see a meaningful error:

filter policy quota exceeded (Service: AmazonSNS; Status Code: 403; Error Code: FilterPolicyLimitExceeded

  • Define them in a NestedStack --> you only see errors of the form:

The following resource(s) failed to create: [OperationsNestedStackOperationsNestedStackResource956E95E5,
and
Embedded stack arn:aws:cloudformation:eu-central-1.... failed to create

Environment

dotnet core cdk libs with cdk cli version 1.31.0 (build 8f3ac79)

This is 🐛 Bug Report

@akrsmv akrsmv added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 30, 2020
@LanderN
Copy link

LanderN commented Apr 30, 2020

This is a duplicate of #5974

@eladb eladb added the p2 label May 3, 2020
@SomayaB SomayaB added in-progress This issue is being actively worked on. duplicate This issue is a duplicate. and removed needs-triage This issue or PR still needs to be triaged. labels May 5, 2020
@SomayaB
Copy link
Contributor

SomayaB commented May 5, 2020

Closing since it's a duplicate of #5974

@SomayaB SomayaB closed this as completed May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. duplicate This issue is a duplicate. in-progress This issue is being actively worked on. p2
Projects
None yet
Development

No branches or pull requests

4 participants