flaviostutz / cdk-practical-constructs

A collection of CDK constructs for making the development of AWS based applications easier and safer in a practical way
MIT License
4 stars 2 forks source link

fix: apigw lambda permission #36

Closed MarcioMeier closed 1 month ago

MarcioMeier commented 1 month ago

Summary

This is a follow-up for #31

This change ended up introducing this issue:

image

Although it says it is incorrect, we can still call the endpoint and the lambda will be called, hence I believe it is an issue with this specific trigger window in the console, the permission should be fine.

With this PR changes the console looks like this: Screenshot 2024-09-02 at 09 17 17

I also tested calling it and works as well, this is the approach that serverless framework uses.