I'm trying to run tests against DynamoDB Local in CircleCI and they are silently failing and eventually timing out. There are no errors reported by the DocumentClient. What could be causing this issue?
The solution was simple, but tough to find. You need to make sure to define the environment variables AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
and AWS_REGION
. Or, you can define them in your options when calling new AWS.DynamoDB.DocumentClient()
.
For CircleCI, just include something like:
- image: circleci/node:10-browsers
environment:
# The AWS vars are required or else the DynamoDB client will silently fail
AWS_ACCESS_KEY_ID: FOO
AWS_SECRET_ACCESS_KEY: FOO
AWS_REGION: FOO