Link to chapter - http://serverless-stack.com/chapters/handle-api-gateway-cors-errors.html
It seems like this chapter is accidentally being skipped in your tutorial.
Clicking ‘next’ from What is Infrastructure links to Configure DynamoDB. The DynamoDB chapter’s serverless.yml Resources section references
resources/api-gateway-errors.yml. I think What is Infrastructure should link this chapter instead, and this chapter’s ‘next’ should link to DynamoDB.
By the way, this tutorial is excellent, thank you.
Oh this chapter is a new addition to Part 1 of the tutorial. Did you by any change complete Part 1 some time ago?
Oh, interesting, I see what you mean. When I worked through the tutorial, it had me going into API gateway and manually setting this up. I have been focused on just the infra as code section recently, which assumes
resources/api-gateway-errors.yml is already hooked up correctly.
So far the tutorial has been wonderful. I’m now splitting up my apis into separate services following your tutorial as it hit the 200 limit error yesterday! (something similar to serverless-stack-demo-mono-api but the db and auth will be separate repos). Wondering where to include the API Gateway errors resource in this architecture? Couldnt find anything related to this in your github sample.
Sorry which API Gateway errors resource are you talking about? Is it this one - https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/resources/api-gateway-errors.yml?
If that is the case then you should be able to reference it just as before.
Thanks for your reply. Yes that’s the resource I was referring to. If there are more than one services, should each service refer this api gateway errors resource? I guess it should! Just wanted to confirm.