title: Serverless deploying multiple functions
body: <p>I've recently updated my serverless project, and I've found that many things have changed in the last few updates.</p>
  
  <p><a href="https://serverless.com/" rel="nofollow noreferrer">https://serverless.com/</a> </p>
  
  <p>I don't fully understand whats the correct way to have multiple lambda functions and api gateway endpoints related to the same project. With the old serverless I have every lambda and endpoint as a completely seperate function, this worked pretty well for me.</p>
  
  <p>I can't seem to do this anymore, if I try my second lambda function overrides my first, presumably because my "service name" for both is the same. My service name is the same because I want both rest endpoints in the same API in API Gateway. Since serverless creates the API name based on the service name.</p>
  
  <p>So then I tried to add both functions to the same "Service". this worked for the most part, except that now I need to include my custom role statement for all my functions into the same role (because this one role is now being linked to all my functions). Effectively giving more permissions to each individual function than it should have. The other issue is that all my handler files for the different functions are being put into each functions deployment bundle.</p>
  
  <p>So basically, I'm not sure what is the correct approach to have multiple functions that relate to the same project but are separate in functionality. It used to make sense, now doesn't.</p>
  
  <p>If anybody can give me some pointers please</p>
  
  <p>Thanks </p>