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 2021/03/30 13:24:04 UTC

[camel-kamelets] branch master updated (2d92967 -> 07f0fea)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.


    from 2d92967  Added Minio Sink Kamelet
     new dbffa84  Added AWS Lambda Sink Kamelet
     new ecf4fcf  Added AWS Lambda Sink Kamelet
     new 8223825  Added AWS Lambda Sink Kamelet
     new 07f0fea  Added AWS Lambda Sink Kamelet

The 4 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.


Summary of changes:
 aws-lambda-sink.kamelet.yaml                       | 51 ++++++++++++++++++++++
 .../assets/images/kamelets/aws-lambda-sink.svg     |  1 +
 docs/modules/ROOT/nav.adoc                         |  1 +
 .../{aws-sns-sink.adoc => aws-lambda-sink.adoc}    | 25 +++++------
 4 files changed, 65 insertions(+), 13 deletions(-)
 create mode 100644 aws-lambda-sink.kamelet.yaml
 create mode 100644 docs/modules/ROOT/assets/images/kamelets/aws-lambda-sink.svg
 copy docs/modules/ROOT/pages/{aws-sns-sink.adoc => aws-lambda-sink.adoc} (64%)

[camel-kamelets] 03/04: Added AWS Lambda Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 82238255473179b37cc86effb533dec24b888038
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 29 18:05:02 2021 +0200

    Added AWS Lambda Sink Kamelet
---
 docs/modules/ROOT/nav.adoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index fcee3cc..d3318a1 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -1,6 +1,7 @@
 // THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
 * xref:ROOT:aws-ddb-streams-source.adoc[image:kamelets/aws-ddb-streams-source.svg[] AWS DynamoDB Streams Source]
 * xref:ROOT:aws-kinesis-source.adoc[image:kamelets/aws-kinesis-source.svg[] AWS Kinesis Source]
+* xref:ROOT:aws-lambda-sink.adoc[image:kamelets/aws-lambda-sink.svg[] AWS Lambda Sink]
 * xref:ROOT:aws-s3-source.adoc[image:kamelets/aws-s3-source.svg[] AWS S3 Source]
 * xref:ROOT:aws-sns-fifo-sink.adoc[image:kamelets/aws-sns-fifo-sink.svg[] AWS SNS FIFO Sink]
 * xref:ROOT:aws-sns-sink.adoc[image:kamelets/aws-sns-sink.svg[] AWS SNS Sink]

[camel-kamelets] 04/04: Added AWS Lambda Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 07f0fea884cd25e086cb1ff6aab075b059722ea5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 29 18:05:17 2021 +0200

    Added AWS Lambda Sink Kamelet
---
 .../assets/images/kamelets/aws-lambda-sink.svg     |  1 +
 docs/modules/ROOT/pages/aws-lambda-sink.adoc       | 66 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-lambda-sink.svg b/docs/modules/ROOT/assets/images/kamelets/aws-lambda-sink.svg
new file mode 100644
index 0000000..0975f05
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-lambda-sink.svg
@@ -0,0 +1 @@
+<svg width="2065" height="2500" viewBox="0 0 256 310" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M0 245.262l16.322 8.161L19 248.668V59.333l-2.678-3.494L0 64v181.262" fill="#9D5025"/><path d="M47.678 63.57l-31.356-7.731v197.584l31.356-7.302V63.57" fill="#F68536"/><path d="M143.893 78.604l22.335-11.597 74.309 28.778-19.758 2.577-76.886-19.758" fill="#6B3A19"/><path d="M144.752 230.658l21.906 11.597 74.308-28.778-19.758-2.578-76.456 19.759" fill="#FBBF93"/><p [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/aws-lambda-sink.adoc b/docs/modules/ROOT/pages/aws-lambda-sink.adoc
new file mode 100644
index 0000000..667a5b5
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-lambda-sink.adoc
@@ -0,0 +1,66 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-lambda-sink.svg[] AWS Lambda Sink
+
+*Provided by: "Apache Software Foundation"*
+
+Send a payload to an AWS Lambda function
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-lambda-sink` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *accessKey {empty}* *| Access Key| The access key obtained from AWS| string| | 
+| *function {empty}* *| Function Name| The Lambda Function name| string| | 
+| *region {empty}* *| AWS Region| The AWS region to connect to| string| | `"eu-west-1"`
+| *secretKey {empty}* *| Secret Key| The secret key obtained from AWS| string| | 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-lambda-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `aws-lambda-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.aws-lambda-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-lambda-sink-binding
+spec:
+  source:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+  sink:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: aws-lambda-sink
+    properties:
+      accessKey: "The Access Key"
+      function: "The Function Name"
+      region: "eu-west-1"
+      secretKey: "The Secret Key"
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `aws-lambda-sink-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the sink using the following command:
+
+[source,shell]
+----
+kubectl apply -f aws-lambda-sink-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 02/04: Added AWS Lambda Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit ecf4fcfa7ee6ed97e78f48371077bb53e17ddaa3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 29 18:04:17 2021 +0200

    Added AWS Lambda Sink Kamelet
---
 aws-lambda-sink.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aws-lambda-sink.kamelet.yaml b/aws-lambda-sink.kamelet.yaml
index 8c88790..4cf46d7 100644
--- a/aws-lambda-sink.kamelet.yaml
+++ b/aws-lambda-sink.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
 metadata:
   name: aws-lambda-sink
   annotations:
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnICAgdmlld0JveD0iMCAwIDI1NiAyNTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPg0KCTxnPg0KCQk8cGF0aCBkPSJNOTguODc1LDIzMi4wMzMgTDcyLjQ0MiwyMjQuNjI1IEw0Ny40NDEsMTk2LjExNyBMNzguNzEzLDE5NS4yNTQgTDk4Ljg3NSwyMzIuMDMzIiBmaWxsPSIjOTk1QjgwIj [...]
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA2NSIgaGVpZ2h0PSIyNTAwIiB2aWV3Qm94PSIwIDAgMjU2IDMxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PHBhdGggZD0iTTAgMjQ1LjI2MmwxNi4zMjIgOC4xNjFMMTkgMjQ4LjY2OFY1OS4zMzNsLTIuNjc4LTMuNDk0TDAgNjR2MTgxLjI2MiIgZmlsbD0iIzlENTAyNSIvPjxwYXRoIGQ9Ik00Ny42NzggNjMuNTdsLTMxLjM1Ni03LjczMXYxOTcuNTg0bDMxLjM1Ni03LjMwMlY2My41NyIgZmlsbD0iI0Y2ODUzNiIvPjxwYXRoIGQ9Ik0xNDMuODkzIDc4LjYwNGwyMi [...]
     camel.apache.org/provider: "Apache Software Foundation"
   labels:
     camel.apache.org/kamelet.type: sink

[camel-kamelets] 01/04: Added AWS Lambda Sink Kamelet

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit dbffa846076604fe089e33f3e6405caf8e924ccb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 29 17:15:18 2021 +0200

    Added AWS Lambda Sink Kamelet
---
 aws-lambda-sink.kamelet.yaml | 51 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/aws-lambda-sink.kamelet.yaml b/aws-lambda-sink.kamelet.yaml
new file mode 100644
index 0000000..8c88790
--- /dev/null
+++ b/aws-lambda-sink.kamelet.yaml
@@ -0,0 +1,51 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-lambda-sink
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnICAgdmlld0JveD0iMCAwIDI1NiAyNTciIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPg0KCTxnPg0KCQk8cGF0aCBkPSJNOTguODc1LDIzMi4wMzMgTDcyLjQ0MiwyMjQuNjI1IEw0Ny40NDEsMTk2LjExNyBMNzguNzEzLDE5NS4yNTQgTDk4Ljg3NSwyMzIuMDMzIiBmaWxsPSIjOTk1QjgwIj [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: sink
+spec:
+  definition:
+    title: AWS Lambda Sink
+    description: |-
+      Send a payload to an AWS Lambda function
+    required:
+      - function
+      - accessKey
+      - secretKey
+      - region
+    properties:
+      function:
+        title: Function Name
+        description: The Lambda Function name
+        type: string
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS
+        type: string
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      region:
+        title: AWS Region
+        description: The AWS region to connect to
+        type: string
+        example: eu-west-1
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - to:
+          uri: "aws2-lambda:{{function}}"
+          parameters:
+            accessKey: "{{accessKey}}"
+            secretKey: "{{secretKey}}"
+            region: "{{region}}"