Anyone here used the <DynamoDB SQL Connector >with...
# troubleshooting
j
Anyone here used the DynamoDB SQL Connector with
ASSUME_ROLE
credentials? I tried running a very simple
CREATE TABLE
and
INSERT
statement but i get an error related to the credentials. The jar connector is already in the
lib
directory. I tried to do some sanity check and used the aws cli to assume-role and I was able to read and write to the DynamoDB table. What could be the problem here?
Copy code
Caused by: software.amazon.awssdk.services.sts.model.StsException: 2 validation errors detected: Value null at 'roleArn' failed to satisfy constraint: Member must not be null; Value null at 'roleSessionName' failed to satisfy constraint: Member must not be null
a
Hi, do you see the same error if you remove
aws.credentials.role.provider
parameter?
Currently you specifying
ASSUME_ROLE
as nested credentials provider for
ASSUME_ROLE
provider. If you need this nesting, then you’ll need to also specify parameters for your nested provider, e.g.:
Copy code
'aws.credentials.provider' = 'ASSUME_ROLE',
  'aws.credentials.role.arn' = 'arn:aws:iam:111111111111:role/dummyRole',
  'aws.credentials.sessionName' = 'dummy-session_1',
  'aws.credentials.role.provider' = 'ASSUME_ROLE',
  'aws.credentials.role.provider.role.arn' = 'arn:aws:iam:222222222222:role/dummyRole',
  'aws.credentials.role.provider.role.sessionName' = 'dummy-session_2'
j
Thanks! This works