title: Lambda Timing out after calling callback
body: <p>I'm using two lambda functions with Javascript's 4.3 runtime. I run the first and it calls the second synchronously (sync is the intent). Problem is the second one times out (at 60sec) but it actually reaches a successful finish after only 22 seconds.</p>
  
  <p>Here's the flow between the two Lambda functions:</p>
  
  <p><a href="https://i.stack.imgur.com/Pa3Ks.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Pa3Ks.png" alt="flow"></a></p>
  
  <p>Lamda function <strong>A</strong> I am no longer getting CloudWatch logs for but the real problem (I think) is function <strong>B</strong> which times out for no reason.</p>
  
  <p>Here's some CloudWatch logs to illustrate this:</p>
  
  <p><a href="https://i.stack.imgur.com/bKGGR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bKGGR.png" alt="cloudwatch logs"></a></p>
  
  <p>The code in Function B at the end -- which includes the "Success" log statement see in picture above -- is included below:</p>
  
  <p><a href="https://i.stack.imgur.com/q8nW7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/q8nW7.png" alt="code example"></a></p>
  
  <p>Originally I only had the <code>callback(null, 'successful ...')</code> line and not the nodejs <code>0.10.x</code> way where you called <code>succeed()</code> off of context. In desperation I added both but the result is the same.</p>
  
  <p>Anyone have an idea what's going on? Any way in which I can debug this?</p>
  
  <hr>
  
  <p>In case the invocation logic between A and B makes a difference in the state that B starts in, here's the invocation:</p>
  
  <p><a href="https://i.stack.imgur.com/ab77A.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ab77A.png" alt="invocation of Function b"></a></p>