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/06/21 11:46:01 UTC

[camel-kamelets] branch main updated (9f09649 -> a9fb95e)

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

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


    from 9f09649  Added SQL Server Source Kamelet
     new 0c71ea7  Added AWS EC2 Sink Kamelet
     new 82afa02  Added AWS EC2 Sink Kamelet
     new 588044d  Added AWS EC2 Sink Kamelet
     new a9fb95e  Added AWS EC2 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-ec2-sink.kamelet.yaml                          | 72 ++++++++++++++++++++++
 .../ROOT/assets/images/kamelets/aws-ec2-sink.svg   |  1 +
 docs/modules/ROOT/nav.adoc                         |  1 +
 .../pages/{aws-sns-sink.adoc => aws-ec2-sink.adoc} | 27 ++++----
 .../resources/kamelets/aws-ec2-sink.kamelet.yaml   | 72 ++++++++++++++++++++++
 5 files changed, 160 insertions(+), 13 deletions(-)
 create mode 100644 aws-ec2-sink.kamelet.yaml
 create mode 100644 docs/modules/ROOT/assets/images/kamelets/aws-ec2-sink.svg
 copy docs/modules/ROOT/pages/{aws-sns-sink.adoc => aws-ec2-sink.adoc} (68%)
 create mode 100644 library/camel-kamelets-catalog/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml

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

commit a9fb95e134e8448b9a3cedd2fdf71e4ff4e3ee75
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 21 13:41:06 2021 +0200

    Added AWS EC2 Sink Kamelet
---
 .../ROOT/assets/images/kamelets/aws-ec2-sink.svg   |  1 +
 docs/modules/ROOT/pages/aws-ec2-sink.adoc          | 70 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/aws-ec2-sink.svg b/docs/modules/ROOT/assets/images/kamelets/aws-ec2-sink.svg
new file mode 100644
index 0000000..2bbf940
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/aws-ec2-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="M42.754 244.495l-29.918 6.826V57.565l29.918 6.839v180.091" fill="#F68536"/><path d="M80.082 255.931l-37.328 10.608V42.612l37.328 10.595v202.724M127.966 267.681l-47.884 17.524V23.946l47.884 17.516v226.219M256 245.079l-128.034 64.017V0L256 64.017v181.062" fill="#F68536"/><path d="M102.444 12.763L127.966 0v309.096l-25.522-12.759V12.763M60.325 33.82l19.757-9.878v26 [...]
\ No newline at end of file
diff --git a/docs/modules/ROOT/pages/aws-ec2-sink.adoc b/docs/modules/ROOT/pages/aws-ec2-sink.adoc
new file mode 100644
index 0000000..e3063ce
--- /dev/null
+++ b/docs/modules/ROOT/pages/aws-ec2-sink.adoc
@@ -0,0 +1,70 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/aws-ec2-sink.svg[] AWS EC2 Sink
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Check the status of EC2 instances
+
+The Kamelet expects the following headers to be set:
+
+- `instanceIds` / `ce-instanceIds`: as a comma separated list of EC2 instance ids.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `aws-ec2-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| | 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `aws-ec2-sink` can be used in various contexts.
+
+=== Knative Sink
+
+The `aws-ec2-sink` Kamelet can be used as Knative sink by binding it to a Knative object.
+
+.aws-ec2-sink-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: aws-ec2-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-ec2-sink
+    properties:
+      accessKey: "The Access Key"
+      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-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
+----
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 02/04: Added AWS EC2 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 82afa02b55d55d665b0a0c759cf1cb148c19dea5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 21 13:40:25 2021 +0200

    Added AWS EC2 Sink Kamelet
---
 .../resources/kamelets/aws-ec2-sink.kamelet.yaml   | 72 ++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml
new file mode 100644
index 0000000..29717b1
--- /dev/null
+++ b/library/camel-kamelets-catalog/src/main/resources/kamelets/aws-ec2-sink.kamelet.yaml
@@ -0,0 +1,72 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-ec2-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA2NSIgaGVpZ2h0PSIyNTAwIiB2aWV3Qm94PSIwIDAgMjU2IDMxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PHBhdGggZD0iTTQyLjc1NCAyNDQuNDk1bC0yOS45MTggNi44MjZWNTcuNTY1bDI5LjkxOCA2LjgzOXYxODAuMDkxIiBmaWxsPSIjRjY4NTM2Ii8+PHBhdGggZD0iTTgwLjA4MiAyNTUuOTMxbC0zNy4zMjggMTAuNjA4VjQyLjYxMmwzNy4zMjggMTAuNTk1djIwMi43MjRNMTI3Ljk2NiAyNjcuNjgxbC00Ny44ODQgMTcuNTI0VjIzLjk0Nmw0Ny44ODQgMTcuNT [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "AWS EC2"
+  labels:
+    camel.apache.org/kamelet.type: sink
+spec:
+  definition:
+    title: AWS EC2 Sink
+    description: |-
+      Check the status of EC2 instances
+
+      The Kamelet expects the following headers to be set:
+
+      - `instanceIds` / `ce-instanceIds`: as a comma separated list of EC2 instance ids.
+    required:
+      - accessKey
+      - secretKey
+      - region
+    type: object
+    properties:
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS
+        type: string
+        format: password
+        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
+  dependencies:
+    - "camel:aws2-ec2"
+    - "camel:kamelet"
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - choice:
+          when:
+          - simple: "${header[instanceIds]}"
+            steps:
+            - set-header:
+                name: CamelAwsEC2InstancesIds
+                simple: "${header[instanceIds]}"
+          - simple: "${header[ce-instanceIds]}"
+            steps:
+            - set-header:
+                name: CamelAwsEC2InstancesIds
+                simple: "${header[ce-instanceIds]}"
+      - to:
+          uri: "aws2-ec2:ec2-route"
+          parameters:
+            accessKey: "{{accessKey}}"
+            secretKey: "{{secretKey}}"
+            region: "{{region}}"
+            operation: "monitorInstances"

[camel-kamelets] 01/04: Added AWS EC2 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 0c71ea7c008a1eab1fc9f1487fad89e5b21ab0cc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 21 13:39:55 2021 +0200

    Added AWS EC2 Sink Kamelet
---
 aws-ec2-sink.kamelet.yaml | 72 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/aws-ec2-sink.kamelet.yaml b/aws-ec2-sink.kamelet.yaml
new file mode 100644
index 0000000..29717b1
--- /dev/null
+++ b/aws-ec2-sink.kamelet.yaml
@@ -0,0 +1,72 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: aws-ec2-sink
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA2NSIgaGVpZ2h0PSIyNTAwIiB2aWV3Qm94PSIwIDAgMjU2IDMxMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PHBhdGggZD0iTTQyLjc1NCAyNDQuNDk1bC0yOS45MTggNi44MjZWNTcuNTY1bDI5LjkxOCA2LjgzOXYxODAuMDkxIiBmaWxsPSIjRjY4NTM2Ii8+PHBhdGggZD0iTTgwLjA4MiAyNTUuOTMxbC0zNy4zMjggMTAuNjA4VjQyLjYxMmwzNy4zMjggMTAuNTk1djIwMi43MjRNMTI3Ljk2NiAyNjcuNjgxbC00Ny44ODQgMTcuNTI0VjIzLjk0Nmw0Ny44ODQgMTcuNT [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "AWS EC2"
+  labels:
+    camel.apache.org/kamelet.type: sink
+spec:
+  definition:
+    title: AWS EC2 Sink
+    description: |-
+      Check the status of EC2 instances
+
+      The Kamelet expects the following headers to be set:
+
+      - `instanceIds` / `ce-instanceIds`: as a comma separated list of EC2 instance ids.
+    required:
+      - accessKey
+      - secretKey
+      - region
+    type: object
+    properties:
+      accessKey:
+        title: Access Key
+        description: The access key obtained from AWS
+        type: string
+        format: password
+        x-descriptors:
+        - urn:alm:descriptor:com.tectonic.ui:password
+      secretKey:
+        title: Secret Key
+        description: The secret key obtained from AWS
+        type: string
+        format: password
+        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
+  dependencies:
+    - "camel:aws2-ec2"
+    - "camel:kamelet"
+  flow:
+    from:
+      uri: kamelet:source
+      steps:
+      - choice:
+          when:
+          - simple: "${header[instanceIds]}"
+            steps:
+            - set-header:
+                name: CamelAwsEC2InstancesIds
+                simple: "${header[instanceIds]}"
+          - simple: "${header[ce-instanceIds]}"
+            steps:
+            - set-header:
+                name: CamelAwsEC2InstancesIds
+                simple: "${header[ce-instanceIds]}"
+      - to:
+          uri: "aws2-ec2:ec2-route"
+          parameters:
+            accessKey: "{{accessKey}}"
+            secretKey: "{{secretKey}}"
+            region: "{{region}}"
+            operation: "monitorInstances"

[camel-kamelets] 03/04: Added AWS EC2 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 main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 588044de8f99969568f7d39f11dc4a9c4bb12f72
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jun 21 13:40:47 2021 +0200

    Added AWS EC2 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 361151a..bbc2f6a 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -3,6 +3,7 @@
 * xref:ROOT:avro-serialize-action.adoc[image:kamelets/avro-serialize-action.svg[] Avro Serialize Action]
 * xref:ROOT:aws-cloudwatch-sink.adoc[image:kamelets/aws-cloudwatch-sink.svg[] AWS CloudWatch Metrics Sink]
 * xref:ROOT:aws-ddb-streams-source.adoc[image:kamelets/aws-ddb-streams-source.svg[] AWS DynamoDB Streams Source]
+* xref:ROOT:aws-ec2-sink.adoc[image:kamelets/aws-ec2-sink.svg[] AWS EC2 Sink]
 * xref:ROOT:aws-kinesis-firehose-sink.adoc[image:kamelets/aws-kinesis-firehose-sink.svg[] AWS Kinesis Firehose Sink]
 * xref:ROOT:aws-kinesis-sink.adoc[image:kamelets/aws-kinesis-sink.svg[] AWS Kinesis Sink]
 * xref:ROOT:aws-kinesis-source.adoc[image:kamelets/aws-kinesis-source.svg[] AWS Kinesis Source]