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:42:50 UTC
[camel-kamelets] 02/04: Added AWS EC2 Sink Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch ec2
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 210118fc3bf24f2746267433df33069974c5b302
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"