Circular dependency between ApiGateway and Lambda #3378
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
cross-stack
Related to cross-stack resource sharing
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
I am trying to split lambdas into multiple stacks because I reached CloudFormaion 200 resource limit. This is how I am creating everything right now (before split)
For some reason, Lambda becomes dependant on the ApiGateway. I think it is because of Function Policy with a statement which allows invocation from a specific resource. The lambdas function policy looks like this:
The first one should be added by me manually (
fn.grantInvoke...
), but the second one seems to be added automatically behine the sceneAn ability to make Lambda non-dependant on ApiGateway
The ability to split resources into the nested stacks should be seriously considered by the CDK and ideally, some built-in features should be present. Reaching such a limit with lambdas and appsync resolvers is a very easy task
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: