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 2022/01/26 17:53:50 UTC

[camel-kamelets] 01/04: Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Sink

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch 0.7.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 1a277f4b56c8a6e0a0a8eb343f4b76d996983bf7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jan 26 18:40:12 2022 +0100

    Support DefaultCredentialProvider in the AWS Kamelets - AWS S3 Sink
---
 kamelets/aws-s3-sink.kamelet.yaml | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/kamelets/aws-s3-sink.kamelet.yaml b/kamelets/aws-s3-sink.kamelet.yaml
index 6a931e0..ea5b5c6 100644
--- a/kamelets/aws-s3-sink.kamelet.yaml
+++ b/kamelets/aws-s3-sink.kamelet.yaml
@@ -40,8 +40,6 @@ spec:
       If the header won't be set the exchange ID will be used as file name.
     required:
       - bucketNameOrArn
-      - accessKey
-      - secretKey
       - region
     type: object
     properties:
@@ -77,6 +75,13 @@ spec:
         x-descriptors:
         - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
         default: false
+      useDefaultCredentialsProvider:
+        title: Default Credentials Provider
+        description: Set whether the S3 client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
   dependencies:
     - "camel:aws2-s3"
     - "camel:kamelet"
@@ -104,7 +109,8 @@ spec:
       - to:
           uri: "aws2-s3:{{bucketNameOrArn}}"
           parameters:
-            secretKey: "{{secretKey}}"
-            accessKey: "{{accessKey}}"
+            secretKey: "{{?secretKey}}"
+            accessKey: "{{?accessKey}}"
             region: "{{region}}"
             autoCreateBucket: "{{autoCreateBucket}}"
+            useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"