tree: d3df99f284da195bd7d84c436c5ce80991697b1c [path history] [tgz]
  1. aws2-eventbridge-creator/
  2. aws2-s3-events-inject/
  3. aws2-sqs-consumer/
  4. pom.xml
  5. readme.md
examples/camel-example-main-endpointdsl-aws2/readme.md

Camel Example Main Endpoint DSL with AWS2 Eventbridge, SQS and S3 components

This example shows how to use the endpoint DSL in your Camel routes to define endpoints using type safe fluent builders, which are Java methods that are compiled.

This example is splitted in 3 submodules

  • Eventbridge module: This module is responsible for creating a rule in Eventbridge and targetting an SQS queue as target
  • SQS Consumer: This module is responsibile for consuming the events coming into the queue
  • S3 Events inject: This module will upload a file to a bucket and as first step it will autocreate a bucket

Notice how you can configure Camel in the application.properties file.

Don't forget to add your AWS Credentials on all the sub modules.

You'll need to create a trail in cloud trails service of AWS to make this example works out of the box.

Also you'll need to create an SQS queue ahead of time, to make the eventbridge rule point it as target.

How to run

You can run this example following these steps:

  • In aws2-eventbridge-creator run

    mvn camel:run

Once completed you can stop the route

  • In aws2-sqs-consumer run

    mvn camel:run

Leave the route running

  • In aws2-s3-events-inject run

    mvn camel:run

Once completed you can stop the route

In the aws2-sqs-consumer terminal you should see a createBucket event in the log.

Help and contributions

If you hit any problem using Camel or have some feedback, then please https://camel.apache.org/support.html[let us know].

We also love contributors, so https://camel.apache.org/contributing.html[get involved] :-)

The Camel riders!