You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/04/13 16:53:14 UTC
[camel-examples] branch master updated (ee32cbf -> 96127ef)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git.
from ee32cbf Camel-AWS Example: Aws2-s3 to kafka should use useDefaultCredentialProvider option, notes
new d691241 Camel-AWS Example: Aws2-s3 should use useDefaultCredentialProvider option, notes
new 882bb41 Camel-AWS Examples: Align to useDefaultCredentialProvider
new 96127ef Camel-AWS Example: Aws2-s3 should use useDefaultCredentialProvider option, notes
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
examples/aws/main-endpointdsl-aws2-s3/README.adoc | 4 +++-
.../src/main/java/org/apache/camel/example/MyRouteBuilder.java | 2 +-
.../src/main/resources/application.properties | 3 ---
3 files changed, 4 insertions(+), 5 deletions(-)
[camel-examples] 02/03: Camel-AWS Examples: Align to
useDefaultCredentialProvider
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
commit 882bb41a5cc347eaf5eca5068ac65c4bfd874cb9
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 13 18:50:53 2021 +0200
Camel-AWS Examples: Align to useDefaultCredentialProvider
---
.../src/main/java/org/apache/camel/example/MyRouteBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/aws/main-endpointdsl-aws2-s3/src/main/java/org/apache/camel/example/MyRouteBuilder.java b/examples/aws/main-endpointdsl-aws2-s3/src/main/java/org/apache/camel/example/MyRouteBuilder.java
index 206ea2c..5b9d0b8 100644
--- a/examples/aws/main-endpointdsl-aws2-s3/src/main/java/org/apache/camel/example/MyRouteBuilder.java
+++ b/examples/aws/main-endpointdsl-aws2-s3/src/main/java/org/apache/camel/example/MyRouteBuilder.java
@@ -26,7 +26,7 @@ public class MyRouteBuilder extends EndpointRouteBuilder {
@Override
public void configure() throws Exception {
- from(aws2S3("{{bucketName}}").delay(1000L).deleteAfterRead(false))
+ from(aws2S3("{{bucketName}}").delay(1000L).useDefaultCredentialsProvider(true).deleteAfterRead(false))
.log("The content is ${body}");
}
}
[camel-examples] 03/03: Camel-AWS Example: Aws2-s3 should use
useDefaultCredentialProvider option, notes
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
commit 96127efe22eb2ffd93d9bad5f9f7f69c353d9d76
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 13 18:52:01 2021 +0200
Camel-AWS Example: Aws2-s3 should use useDefaultCredentialProvider option, notes
---
examples/aws/main-endpointdsl-aws2-s3/README.adoc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/aws/main-endpointdsl-aws2-s3/README.adoc b/examples/aws/main-endpointdsl-aws2-s3/README.adoc
index 5af1f98..ceaa21b 100644
--- a/examples/aws/main-endpointdsl-aws2-s3/README.adoc
+++ b/examples/aws/main-endpointdsl-aws2-s3/README.adoc
@@ -8,7 +8,9 @@ The example will poll an S3 bucket and Log the content of the file.
Notice how you can configure Camel in the `application.properties` file.
-Don't forget to add your AWS Credentials and the bucket name.
+This example will use the AWS default credentials Provider: https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html
+Set your credentials accordingly.
+Don't forget to add the bucket name.
=== How to run
[camel-examples] 01/03: Camel-AWS Example: Aws2-s3 should use
useDefaultCredentialProvider option, notes
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
commit d69124160a7f42d220aff38a3eefa2418b6d0a49
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Apr 13 18:49:55 2021 +0200
Camel-AWS Example: Aws2-s3 should use useDefaultCredentialProvider option, notes
---
.../main-endpointdsl-aws2-s3/src/main/resources/application.properties | 3 ---
1 file changed, 3 deletions(-)
diff --git a/examples/aws/main-endpointdsl-aws2-s3/src/main/resources/application.properties b/examples/aws/main-endpointdsl-aws2-s3/src/main/resources/application.properties
index 77bc0d3..d1295d7 100644
--- a/examples/aws/main-endpointdsl-aws2-s3/src/main/resources/application.properties
+++ b/examples/aws/main-endpointdsl-aws2-s3/src/main/resources/application.properties
@@ -20,7 +20,4 @@
camel.main.name = AWS2-S3-Consumer
# properties used in the route
-camel.component.aws2-s3.accessKey=xxxx
-camel.component.aws2-s3.secretKey=yyyy
-camel.component.aws2-s3.region=region
bucketName=camel