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/03 12:54:35 UTC
[camel-kamelets] branch ddbstream-use-default-cred created (now bb2ad91)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch ddbstream-use-default-cred
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.
at bb2ad91 Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
This branch includes the following new commits:
new aef12b0 Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
new bb2ad91 Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
The 2 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.
[camel-kamelets] 01/02: Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch ddbstream-use-default-cred
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit aef12b0a6064c8d6f011c65bebdd5eebc573624f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 3 13:51:19 2022 +0100
Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
---
kamelets/aws-ddb-streams-source.kamelet.yaml | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/kamelets/aws-ddb-streams-source.kamelet.yaml b/kamelets/aws-ddb-streams-source.kamelet.yaml
index 01e2900..512e139 100644
--- a/kamelets/aws-ddb-streams-source.kamelet.yaml
+++ b/kamelets/aws-ddb-streams-source.kamelet.yaml
@@ -32,10 +32,12 @@ spec:
title: "AWS DynamoDB Streams Source"
description: |-
Receive events from AWS DynamoDB Streams.
+
+ Access Key/Secret Key are the basic method for authenticating to the AWS DynamoDB Streams Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'.
+
+ When using a default Credentials Provider the AWS DynamoDB Streams 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:
- table
- - accessKey
- - secretKey
- region
type: object
properties:
@@ -75,6 +77,13 @@ spec:
type: string
example: "900000000005745712447"
default: "000000000000000000000"
+ 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
types:
out:
mediaType: application/json
@@ -86,11 +95,12 @@ spec:
from:
uri: "aws2-ddbstream:{{table}}"
parameters:
- secretKey: "{{secretKey}}"
- accessKey: "{{accessKey}}"
+ secretKey: "{{?secretKey}}"
+ accessKey: "{{?accessKey}}"
region: "{{region}}"
iteratorType: "{{iteratorType}}"
sequenceNumberProvider: "{{sequenceNumberProvider}}"
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
steps:
- marshal:
json:
[camel-kamelets] 02/02: Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch ddbstream-use-default-cred
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit bb2ad91228f60fc4fa0f5be8b4f5a3a4fcd9bd88
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 3 13:52:15 2022 +0100
Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
---
.../kamelets/aws-ddb-streams-source.kamelet.yaml | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml
index 01e2900..512e139 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-ddb-streams-source.kamelet.yaml
@@ -32,10 +32,12 @@ spec:
title: "AWS DynamoDB Streams Source"
description: |-
Receive events from AWS DynamoDB Streams.
+
+ Access Key/Secret Key are the basic method for authenticating to the AWS DynamoDB Streams Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'.
+
+ When using a default Credentials Provider the AWS DynamoDB Streams 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:
- table
- - accessKey
- - secretKey
- region
type: object
properties:
@@ -75,6 +77,13 @@ spec:
type: string
example: "900000000005745712447"
default: "000000000000000000000"
+ 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
types:
out:
mediaType: application/json
@@ -86,11 +95,12 @@ spec:
from:
uri: "aws2-ddbstream:{{table}}"
parameters:
- secretKey: "{{secretKey}}"
- accessKey: "{{accessKey}}"
+ secretKey: "{{?secretKey}}"
+ accessKey: "{{?accessKey}}"
region: "{{region}}"
iteratorType: "{{iteratorType}}"
sequenceNumberProvider: "{{sequenceNumberProvider}}"
+ useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}"
steps:
- marshal:
json: