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:15:37 UTC
[camel-kamelets] 03/07: Support DefaultCredentialProvider in the AWS Kamelets - AWS Kinesis Sink
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch 735-cont
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 8003bb0830823b6c6aeedaefe7a535d8c305c628
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 4 14:01:08 2022 +0100
Support DefaultCredentialProvider in the AWS Kamelets - AWS Kinesis Sink
---
.../resources/kamelets/aws-kinesis-sink.kamelet.yaml | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-sink.kamelet.yaml
index dc5cb58..bfbea53 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-kinesis-sink.kamelet.yaml
@@ -33,6 +33,10 @@ spec:
description: |-
Send data to 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.
+
The Kamelet expects the following header:
- `partition` / `ce-partition`: to set the Kinesis partition key
@@ -46,8 +50,6 @@ spec:
This header is optional.
required:
- stream
- - accessKey
- - secretKey
- region
type: object
properties:
@@ -76,6 +78,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
dependencies:
- "camel:core"
- "camel:aws2-kinesis"
@@ -116,6 +125,7 @@ spec:
- to:
uri: "aws2-kinesis:{{stream}}"
parameters:
- secretKey: "{{secretKey}}"
- accessKey: "{{accessKey}}"
+ secretKey: "{{?secretKey}}"
+ accessKey: "{{?accessKey}}"
region: "{{region}}"
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"