# Subscribe all topics to a function

**URL:** <https://forum.serverless.com/t/subscribe-all-topics-to-a-function/4383>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [April 30, 2018, 3:58pm UTC](https://forum.serverless.com/t/subscribe-all-topics-to-a-function/4383 "2018-04-30T15:58:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterjohn](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@peterjohn](https://forum.serverless.com/u/peterjohn)\
**Post date:** [April 30, 2018, 3:58pm UTC](https://forum.serverless.com/t/subscribe-all-topics-to-a-function/4383/1 "2018-04-30T15:58:06Z")

</div>

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,
