Amazon DynamoDb-local java 1.23.0 has a breaking change

0

In the previous versions you can set the access-key and secret-key to "" (empty string), like:

...
.withCredentials(new AWSStaticCredentialsProvider(new BasicAWSCredentials("", "")))
...

it doesn't work any more. You will get an exception during startup.

已提問 1 年前檢視次數 319 次
3 個答案
0

DynamoDB Local V2.0 and greater convention specifies that the AWS_ACCESS_KEY_ID can only contain letters (A–Z, a–z) and numbers (0–9).

More info here Troubleshooting "The Access Key ID or Security Token is Invalid" Error after Upgrading DynamoDB Local to Version 2.0 or Greater

profile pictureAWS
專家
已回答 1 年前
  • My remark is about 1.23.0, not 2.0. 1.22 -> 1.23 is a minor upgrade and it contains a breaking change.

-1
  • It is probably related in a way that after they released 2.0 they also added some of the upgraded logic to 1.23.0. BUT 1.23 is a minor upgrade from 1.22, and this upgraded logic broke a functionality which worked before. All of our CI tests suddenly started failing, because we used empty strings as credentials in the tests.

-1

DinamoDb-local doesn't check the credentials, so you can still set it any non-empty string.

Although it IS still an annoying issue, because our historical versions don't build anymore (All of the tests fails)

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南