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/12/10 12:13:51 UTC

[camel-kamelets] 05/08: Added AWS Redshift SQL Source Kamelet - Templates

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

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

commit 6999f7acbedc1491e32a76f9ad1c6d6e82afb984
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Dec 10 13:09:21 2021 +0100

    Added AWS Redshift SQL Source Kamelet - Templates
---
 .../camel-k/aws-redshift-source-binding.yaml       | 22 ++++++++++++++++++++++
 .../bindings/core/aws-redshift-source-binding.yaml | 13 +++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/templates/bindings/camel-k/aws-redshift-source-binding.yaml b/templates/bindings/camel-k/aws-redshift-source-binding.yaml
new file mode 100644
index 0000000..3422714
--- /dev/null
+++ b/templates/bindings/camel-k/aws-redshift-source-binding.yaml
@@ -0,0 +1,22 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-redshift-source-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: aws-redshift-source
+    properties:
+      databaseName: "The Database Name"
+      password: "The Password"
+      query: "INSERT INTO accounts (username,city) VALUES (:#username,:#city)"
+      serverName: "localhost"
+      username: "The Username"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+  
\ No newline at end of file
diff --git a/templates/bindings/core/aws-redshift-source-binding.yaml b/templates/bindings/core/aws-redshift-source-binding.yaml
new file mode 100644
index 0000000..d7e5ac7
--- /dev/null
+++ b/templates/bindings/core/aws-redshift-source-binding.yaml
@@ -0,0 +1,13 @@
+- route:
+    from:
+      uri: "kamelet:aws-redshift-source"
+      parameters:
+        databaseName: "The Database Name"
+        password: "The Password"
+        query: "INSERT INTO accounts (username,city) VALUES (:#username,:#city)"
+        serverName: "localhost"
+        username: "The Username"
+    steps:
+      - to:
+          uri: "log:info"
+    
\ No newline at end of file