-
Notifications
You must be signed in to change notification settings - Fork 339
Description
Hi,
We are using kafka-connect-s3 connector version 5.5.1.
We tried to use the Trusted Account Credentials feature.
According to the documentation,
we need to add the following properties:
s3.credentials.provider.class=AwsAssumeRoleCredentialsProvider sts.role.arn=arn:aws:iam::012345678901:role/my-restricted-role sts.role.session.name=session-name sts.role.external.id=external-id
It didn't work for us.
After digging the code,
we found that in order to make it work we need to add a prefix 's3.credentials.provider' to 'sts.role.arn', 'sts.role.session.name' and 'sts.role.external.id'
Following is the configuration that worked for us:
s3.credentials.provider.class=AwsAssumeRoleCredentialsProvider s3.credentials.provider.sts.role.arn=arn:aws:iam::012345678901:role/my-restricted-role s3.credentials.provider.sts.role.session.name=session-name s3.credentials.provider.sts.role.external.id=external-id
In addition,
It worth mentioning that 'external.id' is mandatory, while it is not mandatory on AWS