This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch aws-redshift-sink in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit c24e5804632403b485e624ab45e3dcd15ae50a22 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Fri Dec 10 14:49:46 2021 +0100 Added AWS Redshift SQL Sink Kamelet - Template --- .../camel-k/aws-redshift-sink-binding.yaml | 22 ++++++++++++++++++++++ .../bindings/core/aws-redshift-sink-binding.yaml | 16 ++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/templates/bindings/camel-k/aws-redshift-sink-binding.yaml b/templates/bindings/camel-k/aws-redshift-sink-binding.yaml new file mode 100644 index 0000000..3b53536 --- /dev/null +++ b/templates/bindings/camel-k/aws-redshift-sink-binding.yaml @@ -0,0 +1,22 @@ +apiVersion: camel.apache.org/v1alpha1 +kind: KameletBinding +metadata: + name: aws-redshift-sink-binding +spec: + source: + ref: + kind: KafkaTopic + apiVersion: kafka.strimzi.io/v1beta1 + name: my-topic + sink: + ref: + kind: Kamelet + apiVersion: camel.apache.org/v1alpha1 + name: aws-redshift-sink + properties: + databaseName: "The Database Name" + password: "The Password" + query: "INSERT INTO accounts (username,city) VALUES (:#username,:#city)" + serverName: "localhost" + username: "The Username" + \ No newline at end of file diff --git a/templates/bindings/core/aws-redshift-sink-binding.yaml b/templates/bindings/core/aws-redshift-sink-binding.yaml new file mode 100644 index 0000000..8831065 --- /dev/null +++ b/templates/bindings/core/aws-redshift-sink-binding.yaml @@ -0,0 +1,16 @@ +- route: + from: + uri: "kamelet:timer-source" + parameters: + period: 1000 + message: "Hello Camel JBang" + steps: + - to: + uri: "kamelet:aws-redshift-sink" + parameters: + databaseName: "The Database Name" + password: "The Password" + query: "INSERT INTO accounts (username,city) VALUES (:#username,:#city)" + serverName: "localhost" + username: "The Username" + \ No newline at end of file