awslabs / amazon-dynamodb-lock-client

The AmazonDynamoDBLockClient is a general purpose distributed locking library built on top of DynamoDB. It supports both coarse-grained and fine-grained locking.
Other
472 stars 85 forks source link

Service: AmazonDynamoDBv2; Status Code: 400; Error Code: AccessDeniedException #78

Open alecmedvedev opened 2 years ago

alecmedvedev commented 2 years ago

Hi all could you please help I use dynamodb-lock-client v 1.1.0 and I spot an issue that AmazonDynamoDBLockClient does not have an access to dynamodb table. I was trying to use following methods tryGetOrAcquireLock and createLockTableInDynamoDB, and both returned an error Service: AmazonDynamoDBv2; Status Code: 400; Error Code: AccessDeniedException.

However the the client AmazonDynamoDB that I injected has access.

Thanks.