Deployment Error - Function not found

Hi,

In my sls infrastructure I have an authorizer function that I created and connected to most of my other functions.
when I deployed it sequentially (first the auth function, then the connection to the other functions) all worked as expected. However, when I want to deploy everything to a new environment, I get the error that my auth function is not found, and I think its because it is not yet created when Cloudformation is trying to reference it.

My question is this:
Can I specify dependency between resources? so that I will deploy a resource only after its dependency is deployed.

If not, how can I overcome this issue?