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/02/07 13:26:02 UTC

[camel-kamelets] 01/13: Support DefaultCredentialProvider in the AWS Kamelets - AWS SQS Batch

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

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

commit 83f9e04e6611e31ee29d7b237bbd109914c0d8ac
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Feb 7 14:10:43 2022 +0100

    Support DefaultCredentialProvider in the AWS Kamelets - AWS SQS Batch
---
 kamelets/aws-sqs-batch-sink.kamelet.yaml | 24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/kamelets/aws-sqs-batch-sink.kamelet.yaml b/kamelets/aws-sqs-batch-sink.kamelet.yaml
index 2ca7079..b571e46 100644
--- a/kamelets/aws-sqs-batch-sink.kamelet.yaml
+++ b/kamelets/aws-sqs-batch-sink.kamelet.yaml
@@ -31,11 +31,13 @@ spec:
   definition:
     title: AWS SQS Batch Sink
     description: |-
-      Send Batch message to an AWS SQS Queue
+      Send Batch message to an AWS SQS Queue.
+
+      Access Key/Secret Key are the basic method for authenticating to the AWS SQS Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'.
+      
+      When using a default Credentials Provider the SQS client will load the credentials through this provider and won't use the static credential. This is reason for not having the access key and secret key as mandatory parameter for this Kamelet.
     required:
       - queueNameOrArn
-      - accessKey
-      - secretKey
       - region
       - batchSeparator
     type: object
@@ -86,7 +88,14 @@ spec:
         description: The underlying protocol used to communicate with SQS
         type: string
         example: http or https
-        default: https        
+        default: https
+      useDefaultCredentialsProvider:
+        title: Default Credentials Provider
+        description: Set whether the SNS 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-sqs"
     - "camel:kamelet"
@@ -98,10 +107,11 @@ spec:
           uri: "aws2-sqs:{{queueNameOrArn}}"
           parameters:
             autoCreateQueue: "{{autoCreateQueue}}"
-            accessKey: "{{accessKey}}"
-            secretKey: "{{secretKey}}"
+            accessKey: "{{?accessKey}}"
+            secretKey: "{{?secretKey}}"
             region: "{{region}}"
             batchSeparator: "{{batchSeparator}}"
             operation: "sendBatchMessage"
             amazonAWSHost: "{{?amazonAWSHost}}"
-            protocol: "{{?protocol}}"            
+            protocol: "{{?protocol}}"
+            useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"