Dynamo DB local Image 2.0.0 security token

0

The latest version of the amazon/dynamodb-local:2.0.0 was released recently. Since upgrading dynamo local is giving issues "The Access Key ID or security token is invalid." according to this documentation as long as you have the Access Key and Security key defined as something it should work. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html

My docker compose file looks identical to the one in the documentation.

Please advise how to fix this.

  • Can you share some more info. What OS are you using, what version? Does reverting DynamoDB Local to a previous version work? Have you tried using the -shareDb flag?

  • Can you please check if your access key follows the convention of only letters (A–Z, a–z) and numbers (0–9)?

    DynamoDB local version 2.0.0 and greater AWS_ACCESS_KEY_ID can contain the only letters (A–Z, a–z) and numbers (0–9).

    https://hub.docker.com/repository/docker/amazon/dynamodb-local/general

asked 10 months ago457 views
2 Answers
0

Starting from version 2.0.0 and 1.23.0 DynamoDB local AWS_ACCESS_KEY_ID can contain only letters (A–Z, a–z) and numbers (0–9).

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html

https://hub.docker.com/r/amazon/dynamodb-local

Deepesh
answered 10 months ago
0

One reason you might encounter this behaviour is using non-maintained packages, which use access keys that are now considered invalid. This is discussed in https://github.com/99x/serverless-dynamodb-local/pull/298

To fix this, upgrade the packages to maintained forks (disclaimer: I am a contributor to these forks), for example:

Also see: https://repost.aws/articles/ARc4hEkF9CRgOrw8kSMe6CwQ/troubleshooting-the-access-key-id-or-security-token-is-invalid-error-after-upgrading-dynamodb-local-to-version-2-0-or-greater

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions