Please fix this

There is an extraneous and potentially problematic line of code that appears twice in the Add a Create Node API chapter:

AWS.config.update({ region: "us-east-1" });

Newbies to the course are susceptible to being stymied by this code as they’re just beginning to naively copy and paste the code samples. It caused me days of grief and has bitten others as well (see this thread: Add a Create Note API).

Deleting this line of code solved my problem. And I notice that it was deleted in your github repo, although it remains in the course text (https://github.com/AnomalyInnovations/serverless-stack-demo-api/commit/ee06a29045b4cfa5ce3fd018a29831107affa2d7)

2 Likes

I can see what this can cause a problem. I’ll change it.

The commit that you are pointing to however is from Part II, where we completely remove all hard coded parts of our stack.