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/26 08:07:48 UTC

[camel-kamelets] branch aws-sns created (now ef59e14)

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

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


      at ef59e14  Added AWS SNS Sink Kamelet

This branch includes the following new commits:

     new 320eb6e  Added AWS SNS Sink Kamelet
     new c4a269d  Added AWS SNS Sink Kamelet
     new 8e8ca06  Added AWS SNS Sink Kamelet
     new 377d549  Added AWS SNS Sink Kamelet
     new 3f9cb58  Added AWS SNS Sink Kamelet
     new ef59e14  Added AWS SNS Sink Kamelet

The 6 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/06: Added AWS SNS 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 aws-sns
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 320eb6e802490b8f1ab3cb03cd0f10bfdef02664
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 09:03:41 2021 +0100

    Added AWS SNS Sink Kamelet
---
 aws-sns-sink.kamelet.yaml | 59 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/aws-sns-sink.kamelet.yaml b/aws-sns-sink.kamelet.yaml
new file mode 100644
index 0000000..10b18ac
--- /dev/null
+++ b/aws-sns-sink.kamelet.yaml
@@ -0,0 +1,59 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-sns-sink
+  annotations:
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+  labels:
+    camel.apache.org/kamelet.type: sink
+spec:
+  definition:
+    title: AWS SNS Sink
+    description: |-
+      Send message to an AWS SNS Queue
+    required:
+      - topicNameOrArn
+      - accessKey
+      - secretKey
+      - region
+    properties:
+      topicNameOrArn:
+        title: Topic Name
+        description: The SQS Topic name or ARN
+        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
+      autoCreateTopic:
+        title: Autocreate topic
+        description: Setting the autocreation of the SNS topic. 
+        type: boolean
+        x-descriptors:
+        - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - to:
+          uri: "aws2-sns:{{topicNameOrArn}}"
+          parameters:
+            autoCreateTopic: "{{autoCreateTopic}}"
+            accessKey: "{{accessKey}}"
+            secretKey: "{{secretKey}}"
+            region: "{{region}}"

[camel-kamelets] 05/06: Added AWS SNS 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 aws-sns
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3f9cb584bb5f9d74fb45f181c416aa720f59630c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 09:07:19 2021 +0100

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

diff --git a/aws-sns-sink.kamelet.yaml b/aws-sns-sink.kamelet.yaml
index 1c30514..6a668e0 100644
--- a/aws-sns-sink.kamelet.yaml
+++ b/aws-sns-sink.kamelet.yaml
@@ -11,7 +11,7 @@ spec:
   definition:
     title: AWS SNS Sink
     description: |-
-      Send message to an AWS SNS Queue
+      Send message to an AWS SNS Topic
     required:
       - topicNameOrArn
       - accessKey

[camel-kamelets] 03/06: Added AWS SNS 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 aws-sns
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 8e8ca064f55d9479a0e66a2293bc3a02e4fe9f75
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 09:06:09 2021 +0100

    Added AWS SNS 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 c8fedb9..d5611f7 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -2,6 +2,7 @@
 * 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-s3-source.adoc[image:kamelets/aws-s3-source.svg[] AWS S3 Source]
+* xref:ROOT:aws-sns-sink.adoc[image:kamelets/aws-sns-sink.svg[] AWS SNS Sink]
 * xref:ROOT:aws-sqs-fifo-sink.adoc[image:kamelets/aws-sqs-fifo-sink.svg[] AWS SQS FIFO Sink]
 * xref:ROOT:aws-sqs-sink.adoc[image:kamelets/aws-sqs-sink.svg[] AWS SQS Sink]
 * xref:ROOT:aws-sqs-source.adoc[image:kamelets/aws-sqs-source.svg[] AWS SQS Source]

[camel-kamelets] 06/06: Added AWS SNS 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 aws-sns
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit ef59e14ad885716c43ebb872ea829333a3c9ffd7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 09:07:31 2021 +0100

    Added AWS SNS Sink Kamelet
---
 docs/modules/ROOT/pages/aws-sns-sink.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/pages/aws-sns-sink.adoc b/docs/modules/ROOT/pages/aws-sns-sink.adoc
index 2bc703a..9ce2f28 100644
--- a/docs/modules/ROOT/pages/aws-sns-sink.adoc
+++ b/docs/modules/ROOT/pages/aws-sns-sink.adoc
@@ -3,7 +3,7 @@
 
 *Provided by: "Apache Software Foundation"*
 
-Send message to an AWS SNS Queue
+Send message to an AWS SNS Topic
 
 == Configuration Options
 

[camel-kamelets] 02/06: Added AWS SNS 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 aws-sns
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit c4a269d7d3c1e33d50aa9fa09b776ff434172978
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 09:05:48 2021 +0100

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

diff --git a/aws-sns-sink.kamelet.yaml b/aws-sns-sink.kamelet.yaml
index 10b18ac..1c30514 100644
--- a/aws-sns-sink.kamelet.yaml
+++ b/aws-sns-sink.kamelet.yaml
@@ -3,7 +3,7 @@ kind: Kamelet
 metadata:
   name: aws-sns-sink
   annotations:
-    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    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

[camel-kamelets] 04/06: Added AWS SNS 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 aws-sns
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 377d5499e06a7590862eb48cbfacfda56ddc4568
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 26 09:06:22 2021 +0100

    Added AWS SNS Sink Kamelet
---
 .../ROOT/assets/images/kamelets/aws-sns-sink.svg   | 14 +++++
 docs/modules/ROOT/pages/aws-sns-sink.adoc          | 67 ++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-sns-sink.svg b/docs/modules/ROOT/assets/images/kamelets/aws-sns-sink.svg
new file mode 100644
index 0000000..192b2c8
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-sns-sink.svg
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg   viewBox="0 0 256 257" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
+	<g>
+		<path d="M98.875,232.033 L72.442,224.625 L47.441,196.117 L78.713,195.254 L98.875,232.033" fill="#995B80"></path>
+		<path d="M37.75,213.233 L22.875,209.067 L8.817,193.033 L25.899,190.224 L37.75,213.233" fill="#995B80"></path>
+		<path d="M0,191.017 L15.204,194.108 L17.411,190.226 L17.411,58.503 L15.204,55.942 L0,64.6 L0,191.017" fill="#7B3F65"></path>
+		<path d="M73.933,69.708 L15.208,55.942 L15.208,194.108 L24.006,193.29 L37.75,213.233 L48.35,191.028 L73.933,188.65 L73.933,69.708" fill="#C17B9D"></path>
+		<path d="M33.958,198.133 L60.021,203.383 L61.737,199.338 L61.737,37.44 L60.021,33.775 L33.958,46.983 L33.958,198.133" fill="#7B3F65"></path>
+		<path d="M208.734,81.516 L60.021,33.775 L60.021,203.387 L77.242,201.171 L98.875,232.033 L116.001,196.183 L208.734,184.25 L208.734,81.516" fill="#C17B9D"></path>
+		<path d="M181.833,256.492 L144.267,245.967 L108.758,205.467 L154.791,204.999 L181.833,256.492" fill="#995B80"></path>
+		<path d="M89.591,208.95 L127.921,216.367 L130.898,213.801 L130.898,4.117 L127.921,0 L89.591,19.158 L89.591,208.95" fill="#7B3F65"></path>
+		<path d="M256,64.033 L127.925,0 L127.925,216.367 L150.522,211.839 L181.833,256.492 L208.734,200.183 L208.717,200.181 L256,190.708 L256,64.033" fill="#C17B9D"></path>
+	</g>
+</svg>
diff --git a/docs/modules/ROOT/pages/aws-sns-sink.adoc b/docs/modules/ROOT/pages/aws-sns-sink.adoc
new file mode 100644
index 0000000..2bc703a
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-sns-sink.adoc
@@ -0,0 +1,67 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-sns-sink.svg[] AWS SNS Sink
+
+*Provided by: "Apache Software Foundation"*
+
+Send message to an AWS SNS Queue
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-sns-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| | 
+| *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| | 
+| *topicNameOrArn {empty}* *| Topic Name| The SQS Topic name or ARN| string| | 
+| autoCreateTopic| Autocreate topic| Setting the autocreation of the SNS topic.| boolean| `false`| 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-sns-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `aws-sns-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.aws-sns-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-sns-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-sns-sink
+    properties:
+      accessKey: "The Access Key"
+      region: "eu-west-1"
+      secretKey: "The Secret Key"
+      topicNameOrArn: "The Topic Name"
+
+----
+
+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-sns-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-sns-sink-binding.yaml
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT