-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(aws-lambda): Error: No child with id: 'InvokeServicePrincipal(apigateway.amazonaws.com)' #12263
Comments
Hi @devendra-kumar1 - where is this imported lambda? Is it part of the same account and region or elsewhere? Please provide a code that reproduces this issue. |
@nija-at Imported lambda in same account and region. |
as a workaround i used below code to sort this issue. new CfnPermission(scope, 'ImportedLambdaPermission', { |
We support this use case starting from CDK version 1.75.0 - 715a030. You need to set the |
Thanks @nija-at . Will give a try and update the ticket accordingly |
@nija-at It is working fine :) |
|
I have a stack where i have resources called api gateway and lambda.
Also i am importing one lambda which is part of different stack and attaching it to once resource of api gateway.
I am facing below issues.
Note : Later on I learnt from issue that this is as per design due to variable canCreatePermissions
Code : this.importedLambda.grantInvoke(new ServicePrincipal('apigateway.amazonaws.com'));
Reproduction Steps
Reffered issue #8240 but no luck.
Please guide me in right direction
The text was updated successfully, but these errors were encountered: