saranyaeu2987 opened a new issue #267:
URL: https://github.com/apache/camel-kafka-connector/issues/267


   Hi, 
   I am using strimzi kafka connect to push data into S3 using 
camel-s3-sink-connector.
   I wanted to use IAM role authentication instead of access key and secret.
   
   How should I need to provide AWS role:arn in my yaml file when 
**camel.component.aws-s3.useIAMCredentials: true**??
   
   
   Sample deployment file (reference: 
https://developers.redhat.com/blog/2020/02/14/using-secrets-in-apache-kafka-connect-configuration/)
   ```
   apiVersion: kafka.strimzi.io/v1alpha1
   kind: KafkaConnector
   metadata:
     name: s3-sink-connector
     labels:
       strimzi.io/cluster: my-connect-cluster
   spec:
     class: org.apache.camel.kafkaconnector.CamelSinkConnector
     tasksMax: 1
     config:
       key.converter: org.apache.kafka.connect.storage.StringConverter
       value.converter: org.apache.kafka.connect.storage.StringConverter
       topics: abc_abc
       camel.sink.url: 
aws-s3://testse1232?keyName=s3-connect/${date:now:yyyyMMdd-HHmmssSSS}
       camel.component.aws-s3.configuration.autocloseBody: false
       #camel.component.aws-s3.accessKey: 
${file:/opt/kafka/external-configuration/aws-credentials/aws-credentials.properties:aws_access_key_id}
       #camel.component.aws-s3.secretKey: 
${file:/opt/kafka/external-configuration/aws-credentials/aws-credentials.properties:aws_secret_access_key}
       camel.component.aws-s3.useIAMCredentials: true
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to