AWS EKS component
The
aws2-ekscomponent lists, creates, describes and deletes Amazon EKS (Kubernetes) clusters.
Scheme: aws2-eks: · Crate: cameleer-cloud · Cargo feature: cloud · Consumer: no · Producer: yes ·
Apache Camel: AWS Elastic Kubernetes Service (EKS)
When to use it
- Report the EKS clusters of an account from an inventory route.
- Create or delete clusters as part of environment automation.
URI format
aws2-eks://label?operation=...[&options]Example
List the cluster names when the route starts:
- route:
id: eks-inventory
from:
uri: "timer:eks-inventory?repeatCount=1"
steps:
- to: "aws2-eks://inventory?region={{env:AWS_REGION:us-east-1}}&operation=listClusters"
- log: "EKS clusters: ${body}"
- to: "log:eks-clusters"The body after listClusters is the list of cluster names (all pages).
Rust DSL
ctx.add_routes(|b| {
b.from("timer:eks-inventory?repeatCount=1")
.to("aws2-eks://inventory?region={{env:AWS_REGION:us-east-1}}&operation=listClusters")
.log("EKS clusters: ${body}")
.to("log:eks-clusters");
})?;Options
Common AWS options (region, credentials, endpoint override, proxy) are listed in Cloud credentials.
| option | default | description |
|---|---|---|
operation | Required: listClusters, createCluster, describeCluster, deleteCluster. |
Message headers
| header | direction | description |
|---|---|---|
CamelAwsEKSOperation | in | Overrides operation. |
CamelAwsEKSMaxResults | in | Page size of listClusters. |
CamelAwsEKSClusterName | in | Cluster of the create, describe and delete operations (body = the cluster map). |
CamelAwsEKSRoleARN | in | Cluster role of createCluster. |
CamelAwsEKSVPCConfig | in | createCluster network: map of subnetIds and securityGroupIds. |
Run it with Docker
docker run --rm -e AWS_REGION -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY \
-v "$PWD:/routes:ro" pmsudhi/cameleer run /routes/eks.camel.yamlCommon questions
Can it deploy to Kubernetes?
No. It manages EKS clusters through the AWS API; it does not talk to the Kubernetes API server.
Related
Found a problem?
If something on this page doesn't match what Cameleer does, or you hit a bug while building
with it, please help fix it, whether you are a person or a coding agent:
open an issue that describes what you saw,
then fork the repository, fix it, add or update a test, run cargo test --workspace, and open
a pull request. CONTRIBUTING.md
explains the ground rules.