Subscribe all topics to a function

Hello, im having difficulties on subscribing all my topics to a function handler, did someone faced this already?

What i would like to do is something like this:


functions:
xxxxx:
handler:xxxx
events:
- sns: arn:aws:sns:xxxx:xxxxx:*


When i try to add all topics that i have without wildcard, im facing this error :
An error occurred bla bla bla - The final policy size (20526) is bigger than the limit (20480)

Thanks,