Accessing DynamoDB table from locally running lambda
When I run my lambda locally using AWS SAM it can’t see DynamoDB tables. Everything is fine if the lambda is running in the cloud env, it just doesn’t work locally. Also this command: aws dynamodb list-tables
works locally – it lists tables successfully, that’s how I know that my config/aws creds are set up properly. The relevant python code:
Why doesn’t DynamoDB store all the records?
I am using the following function to store a list of records in a dynamodb table