It’s hard to believe, but sometimes code changes that fix one problem often cause another. Let’s modify one of our Lambda functions and intentionally introduce an error.
Navigate to Lambda within the AWS Console by searching for it in the search bar at the top of your AWS Console screen. Then, search for and click on the link to the example producer function link:
Scroll down to the section labeled Code source and double-click file named lambda_function.py to open it:
Rename the variable TABLE_NAME to DB_TABLE_NAME:
Click the Deploy button located at the top right hand side of the Code source section of the page: