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/04 13:18:27 UTC
[camel-kamelets] 04/08: Support DefaultCredentialProvider in the AWS Kamelets - AWS Kinesis Source
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 0.7.x-735-cont
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit bdf837fbe2da1be66e8a310a7f3eddb478a19a6b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 4 14:02:17 2022 +0100
Support DefaultCredentialProvider in the AWS Kamelets - AWS Kinesis Source
---
kamelets/aws-kinesis-source.kamelet.yaml | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/kamelets/aws-kinesis-source.kamelet.yaml b/kamelets/aws-kinesis-source.kamelet.yaml
index f36432c..6f2bd82 100644
--- a/kamelets/aws-kinesis-source.kamelet.yaml
+++ b/kamelets/aws-kinesis-source.kamelet.yaml
@@ -32,10 +32,12 @@ spec:
title: "AWS Kinesis Source"
description: |-
Receive data from AWS Kinesis.
+
+ Access Key/Secret Key are the basic method for authenticating to the AWS Kinesis Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'.
+
+ When using a default Credentials Provider the Kinesis 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:
- stream
- - accessKey
- - secretKey
- region
type: object
properties:
@@ -64,6 +66,13 @@ spec:
description: The AWS region to connect to
type: string
example: eu-west-1
+ useDefaultCredentialsProvider:
+ title: Default Credentials Provider
+ description: Set whether the Kinesis Firehose 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
types:
out:
mediaType: application/json
@@ -75,9 +84,10 @@ spec:
from:
uri: aws2-kinesis:{{stream}}
parameters:
- secretKey: "{{secretKey}}"
- accessKey: "{{accessKey}}"
+ secretKey: "{{?secretKey}}"
+ accessKey: "{{?accessKey}}"
region: "{{region}}"
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
steps:
- marshal:
json: