Dynamo DB local Image 2.0.0 security token


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).


asked 10 months ago448 views
2 Answers

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).



answered 10 months ago

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