You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/07/01 12:39:21 UTC

[GitHub] [camel-quarkus] lburgazzoli commented on issue #1431: Question regarding AWS Credentials without XML beans

lburgazzoli commented on issue #1431:
URL: https://github.com/apache/camel-quarkus/issues/1431#issuecomment-652393772


   There are a number of ways you can use to configure AWS S3 component, a simple one is to use properties, like [here](https://github.com/apache/camel-quarkus/blob/master/integration-tests/aws/src/main/resources/application.properties#L25-L27) but for a more advanced use case you can use a CDI producer, something like:
   
   ```java
   @ApplicationScoped
   public class S3Customizer {
       @Produces
       public static AmazonS3 s3Client() {
           return AmazonS3ClientBuilder
               .standard()
               .withEndpointConfiguration(...)
               .withCredentials(...)
               .withPathStyleAccessEnabled(...)
               .build();
       }
   }
   ```


----------------------------------------------------------------
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:
users@infra.apache.org