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

Lambda function is not reusable for OpenApiGatewayToLambda #1191

Open
adminy opened this issue Aug 29, 2024 · 0 comments
Open

Lambda function is not reusable for OpenApiGatewayToLambda #1191

adminy opened this issue Aug 29, 2024 · 0 comments
Labels
bug Something isn't working needs-triage The issue or PR still needs to be triaged

Comments

@adminy
Copy link

adminy commented Aug 29, 2024

when I try to reuse a lambda function in OpenApiGatewayToLambda constructor via existingLambdaObj, I get an error relating to

apiLambdaFunction.lambdaFunction.addPermission('PermitAPIGInvocation', {

as this permission is added for every lambda but cdk would create it over and over again with the same name and it has an expectation of it to be unique.

@adminy adminy added bug Something isn't working needs-triage The issue or PR still needs to be triaged labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage The issue or PR still needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant