Use Environment Variables in Lambda Functions


Link to chapter -


Small bit of confusion - this chapter references the environment variable in our serverless.yml as the following:

# These environment variables are made available to our functions
# under process.env.
        Ref: NotesTable

When (I believe) it should look like:

    tableName: ${self:custom.tableName}


Oh you are right. Must have missed it when we made the last correction.

Edit: I see what happened, when we made the last change we moved this part to an earlier chapter - and forgot to fix it here.