Skip to content

Commit

Permalink
Support DefaultCredentialProvider in the AWS Kamelets - AWS DDB Streams
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed Feb 3, 2022
1 parent 4151f4a commit b90a583
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit b90a583

Please sign in to comment.