title: ResourceNotFoundException with full deploy to prod
body: <p>I have a fully developed set of functions which work fine in the "dev" stage and it's now time for me deploy to production. Unfortunately every time I try to deploy it goes for a long time but after printing "Checking Stack update progress" it fails with a 404 error:</p>
  
  <blockquote>
    <p>An error occurred: SentinelLambdaFunction - Function not found: arn:aws:lambda:us-east-1:837955377040:function:xyz-services-prod-sentinel (Service: AWSLambda; Status Code: 404; Error Code: ResourceNotFoundException; Request ID: 38f86b7a-99cd-11e8-af06-fffd92e40dc5).</p>
  </blockquote>
  
  <p>This error is non-sensical to me as this function <em>does</em> exist and executing precisely the same full deployment to "dev" results in no error. Note that in both environment/stage, we are deploying 10 functions with a fully deployment. </p>
  
  <p>I tried removing the function which was being complained about first, with the hope that I could re-include it on a second deployment but then it simply complained about a different function not existing. </p>
  
  <p>I also thought maybe the "--force" parameter might push this deployment into place but it has had no impact on the error I get.</p>
  
  <p>The cycle time for each attempt is very long so I'd be very grateful if anyone could help to point me in the right direction on this.</p>
  
  <hr>
  
  <p>Below is a screenshot of the output when run in "verbose" mode:</p>
  
  <p><a href="https://i.stack.imgur.com/sQX7b.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sQX7b.jpg" alt="enter image description here"></a></p>
  
  <p>In attempt to get around the error I thought maybe I'd have a better chance if I went into CloudFormation and explicitly deleted the template for <code>prod</code>. I attempted to do this from the GUI and got the following:</p>
  
  <p><a href="https://i.stack.imgur.com/7HSx4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7HSx4.png" alt="enter image description here"></a></p>
  
  <p>This actually has further convinced me that this removal is important but I'm not sure what to do next.</p>