jorick caberio
08/17/2023, 2:33 PMASSUME_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?
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 nullAleksandr Pilipenko
08/17/2023, 5:45 PMaws.credentials.role.provider parameter?Aleksandr Pilipenko
08/17/2023, 5:57 PMASSUME_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.:
'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'jorick caberio
08/19/2023, 5:16 AM