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

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

commit f176ee42c6c6d7dafb4cf8e5eb958e1a587f02f1
Author: Andrea Cosentino <anco...@gmail.com>
AuthorDate: Wed Jun 23 07:47:05 2021 +0200

    AWS Kinesis Source Kamelet: return just the record data while consuming and 
regen
---
 docs/modules/ROOT/pages/aws-ec2-sink.adoc | 64 +++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

diff --git a/docs/modules/ROOT/pages/aws-ec2-sink.adoc 
b/docs/modules/ROOT/pages/aws-ec2-sink.adoc
index e3063ce..f27b2e8 100644
--- a/docs/modules/ROOT/pages/aws-ec2-sink.adoc
+++ b/docs/modules/ROOT/pages/aws-ec2-sink.adoc
@@ -67,4 +67,68 @@ You can run the sink using the following command:
 ----
 kubectl apply -f aws-ec2-sink-binding.yaml
 ----
+
+==== *Binding to Knative using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the 
`kamel bind` command:
+
+[source,shell]
+----
+kamel bind channel/mychannel aws-ec2-sink -p "sink.accessKey=The Access Key" 
-p "sink.region=eu-west-1" -p "sink.secretKey=The Secret Key"
+----
+
+This will create the KameletBinding under the hood and apply it to the current 
namespace in the cluster.
+
+=== Kafka Sink
+
+The `aws-ec2-sink` Kamelet can be used as Kafka sink by binding it to a Kafka 
topic.
+
+.aws-ec2-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-ec2-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-ec2-sink
+    properties:
+      accessKey: "The Access Key"
+      region: "eu-west-1"
+      secretKey: "The Secret Key"
+
+----
+
+Ensure that you've installed https://strimzi.io/[Strimzi] and created a topic 
named `my-topic` in the current namespace.
+Make also sure you have 
xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the 
Kubernetes cluster you're connected to.
+
+Save the `aws-ec2-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-ec2-sink-binding.yaml
+----
+
+==== *Binding to Kafka using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the 
`kamel bind` command:
+
+[source,shell]
+----
+kamel bind kafka.strimzi.io/v1beta1:KafkaTopic:my-topic aws-ec2-sink -p 
"sink.accessKey=The Access Key" -p "sink.region=eu-west-1" -p 
"sink.secretKey=The Secret Key"
+----
+
+This will create the KameletBinding under the hood and apply it to the current 
namespace in the cluster.
+
 // THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

Reply via email to