diff --git a/kamelets/aws-s3-source.kamelet.yaml b/kamelets/aws-s3-source.kamelet.yaml index c0490406e..1b63ebf7d 100644 --- a/kamelets/aws-s3-source.kamelet.yaml +++ b/kamelets/aws-s3-source.kamelet.yaml @@ -14,11 +14,13 @@ spec: definition: title: "AWS S3 Source" description: |- - Receive data from AWS S3. + Receive data from AWS S3 Bucket. + + Access Key/Secret Key are the basic method for authenticating to the AWS S3 Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'. + + When using a default Credentials Provider the S3 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: - bucketNameOrArn - - accessKey - - secretKey - region type: object properties: @@ -80,6 +82,13 @@ spec: x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:checkbox' default: false + 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 dependencies: - "camel:aws2-s3" - "camel:kamelet" @@ -88,12 +97,13 @@ spec: uri: "aws2-s3:{{bucketNameOrArn}}" parameters: autoCreateBucket: "{{autoCreateBucket}}" - secretKey: "{{secretKey}}" - accessKey: "{{accessKey}}" + secretKey: "{{?secretKey}}" + accessKey: "{{?accessKey}}" region: "{{region}}" includeBody: "{{includeBody}}" ignoreBody: "{{ignoreBody}}" deleteAfterRead: "{{deleteAfterRead}}" prefix: "{{?prefix}}" + useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}" steps: - to: "kamelet:sink" diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml index c0490406e..1b63ebf7d 100644 --- a/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml +++ b/library/camel-kamelets/src/main/resources/kamelets/aws-s3-source.kamelet.yaml @@ -14,11 +14,13 @@ spec: definition: title: "AWS S3 Source" description: |- - Receive data from AWS S3. + Receive data from AWS S3 Bucket. + + Access Key/Secret Key are the basic method for authenticating to the AWS S3 Service. These parameters are optional, because the Kamelet provide also the 'useDefaultCredentialsProvider'. + + When using a default Credentials Provider the S3 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: - bucketNameOrArn - - accessKey - - secretKey - region type: object properties: @@ -80,6 +82,13 @@ spec: x-descriptors: - 'urn:alm:descriptor:com.tectonic.ui:checkbox' default: false + 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 dependencies: - "camel:aws2-s3" - "camel:kamelet" @@ -88,12 +97,13 @@ spec: uri: "aws2-s3:{{bucketNameOrArn}}" parameters: autoCreateBucket: "{{autoCreateBucket}}" - secretKey: "{{secretKey}}" - accessKey: "{{accessKey}}" + secretKey: "{{?secretKey}}" + accessKey: "{{?accessKey}}" region: "{{region}}" includeBody: "{{includeBody}}" ignoreBody: "{{ignoreBody}}" deleteAfterRead: "{{deleteAfterRead}}" prefix: "{{?prefix}}" + useDefaultCredentialsProvider: "{{useDefaultCredentialsProvider}}" steps: - to: "kamelet:sink"