arjun180 commented on issue #1216:
URL: 
https://github.com/apache/camel-kafka-connector/issues/1216#issuecomment-866238303


   Hi @oscerd - Thanks. So, I was following the thread : 
https://github.com/apache/camel-kafka-connector/issues/282 here. My access key 
and secret key were not working (possibly because I use temp credentials which 
involves the use of secret, access key as well as the session token)
   
   I was trying to use the ```camel.component.aws2-s3.useIAMCredentials: 
true``` option instead. We made sure the default EC2 node group IAM has full s3 
access. The YAML file for the connector looks like this
   
   ```
   apiVersion: kafka.strimzi.io/v1beta2
   kind: KafkaConnector
   metadata:
     name: s3-sink-connector
     labels:
       strimzi.io/cluster: my-connect-cluster
   spec:
     class: org.apache.camel.kafkaconnector.aws2s3.CamelAws2s3SinkConnector
     tasksMax: 1
     config:
       key.converter: org.apache.kafka.connect.storage.StringConverter
       value.converter: org.apache.kafka.connect.storage.StringConverter
       topics: kafka-connect-topic 
       camel.sink.path.bucketNameOrArn: my-connect-bucket
       camel.sink.endpoint.keyName: ${date:now:yyyyMMdd-HHmmssSSS}-${exchangeId}
       camel.component.aws2-s3.useIAMCredentials : true
       camel.component.aws2-s3.region: <region>
   ```
   On running the connector, I end up getting this error : 
   
   ```
   Caused by: org.apache.camel.PropertyBindingException: Error binding property 
(camel.component.aws2-s3.useIAMCredentials=true) with name: useIAMCredentials 
on bean: org.apache.camel.component.aws2.s3.AWS2S3Component@6c7f1a7 with value: 
true
   ```
   Any pointers on where we could be going wrong?


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