zappa / Zappa

Serverless Python
https://zappa.ws/zappa
MIT License
3.31k stars 363 forks source link

[Migrated] Add InvokeFunction Policy for API Gateway #390

Closed jneves closed 6 months ago

jneves commented 3 years ago

Originally from: https://github.com/Miserlou/Zappa/issues/980 by smizell

Feature request

In the AWS environment I'm in, it would be beneficial if zappa deploy added a policy to allow the newly-created API Gateway to have InvokeFunction permissions on related Lambda function.

For us, I need to be explicit in the resources that can invoke the Lambda function via the InvokeFunction policy. Zappa adds a policy for the CloudWatch keep warm event, so that makes it work out of the box. However, I have to add a policy manually for the newly created gateway to have the InvokeFunction policy. It seems to me it would make sense to create this automatically and to be explicit.

I'd be open to exploring this myself with a PR if this is of interest. I'm not sure if this creates any issues for others out there, but I would think it wouldn't.

github-actions[bot] commented 7 months ago

Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.

github-actions[bot] commented 6 months ago

Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.