dynamodb 客户端静默失败然后超时
dynamodb client silently failing and then timing out
我正在尝试 运行 针对 DynamoDB Local in CircleCI and they are silently failing and eventually timing out. There are no errors reported by the DocumentClient 进行测试。是什么导致了这个问题?
解决方案很简单,但很难找到。您需要确保定义环境变量 AWS_ACCESS_KEY_ID
、AWS_SECRET_ACCESS_KEY
和 AWS_REGION
。或者,您可以在调用 new AWS.DynamoDB.DocumentClient()
.
时在您的选项中定义它们
对于 CircleCI,只需包含如下内容:
- 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
我正在尝试 运行 针对 DynamoDB Local in CircleCI and they are silently failing and eventually timing out. There are no errors reported by the DocumentClient 进行测试。是什么导致了这个问题?
解决方案很简单,但很难找到。您需要确保定义环境变量 AWS_ACCESS_KEY_ID
、AWS_SECRET_ACCESS_KEY
和 AWS_REGION
。或者,您可以在调用 new AWS.DynamoDB.DocumentClient()
.
对于 CircleCI,只需包含如下内容:
- 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