Hi,
My problem is to use credentials provider
com.amazonaws.auth.profile.ProfileCredentialsProvider for my S3 connector.
This is a working configuration ~/.aws/credentials
:
[default]
aws_access_key_id = *****
aws_secret_access_key = *****
My new fancy configuration ~/.aws/credentials
[default]
region = eu-west-1
credential_source = Ec2InstanceMetadata
role_arn = arn:aws:iam::123456:role/self-service/s3/ls3.kafka-connect-role
role_session_name = testing_kc_role
Usin the CLI aws sts get-caller-identity
gives me the correct assumed role
The log output from kafka-connect:
2022-04-13 17:51:03,561 DEBUG com.amazonaws.auth.AWSCredentialsProviderChain:129 - Unable to load credentials from com.amazonaws.auth.profile.ProfileCredentialsProvider@4478aad0: Unable to load credentials from profile [default]: Source profile name is not specified
I follow this documentation: Amazon S3 Sink Connector for Confluent Platform | Confluent Platform 5.5.7
Thank
Fredrik