Miserlou / Zappa

Serverless Python
https://blog.zappa.io/
MIT License
11.89k stars 1.21k forks source link

PolicyLengthExceededException #2189

Open wangsha opened 3 years ago

wangsha commented 3 years ago

PolicyLengthExceededException occurs when schedule tasks

Context

same issue as https://github.com/aws/chalice/issues/48

Expected Behavior

No duplicated statement in lambda policy.

Actual Behavior

Same statement appended to existing policy for each update.

Possible Fix

Check statement existance.

Steps to Reproduce

with any functioning zappa project

  1. add following entry in zappa config. async_response_table=xxxx, async_source='sns', async_resources=true.
  2. calling zappa schedule and observe policy keeps growning until hit PolicyLengthExceededException

Your Environment