S3 sink - Credentials provider (Ec2InstanceMetadata)

My problem is to use credentials provider :grimacing:
com.amazonaws.auth.profile.ProfileCredentialsProvider for my S3 connector.

This is a working configuration ~/.aws/credentials:

aws_access_key_id = *****
aws_secret_access_key = *****

My new fancy configuration ~/.aws/credentials

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 :ok_hand:

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


Issue opened: S3 sink - Credentials provider (Ec2InstanceMetadata) · Issue #507 · confluentinc/kafka-connect-storage-cloud · GitHub

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.