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 2022/11/11 14:03:08 UTC

[camel-kamelets-examples] branch main updated (6862909 -> 2ee4dfa)

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-examples.git


    from 6862909  Added instructions for terraform configuration in AWS S3 CDC Example
     new c1990dd  Improved AWS S3 CDC Example
     new 2ee4dfa  Improved AWS S3 CDC Example

The 2 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:
 jbang/aws-s3-cdc/README.adoc         | 2 +-
 jbang/aws-s3-cdc/aws-s3-cdc-log.yaml | 4 ++--
 jbang/aws-s3-cdc/terraform/main.tf   | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)


[camel-kamelets-examples] 02/02: Improved AWS S3 CDC Example

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-examples.git

commit 2ee4dfae9f055c77e00c3f9d83f0533ba52d0a55
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 11 15:02:49 2022 +0100

    Improved AWS S3 CDC Example
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 jbang/aws-s3-cdc/aws-s3-cdc-log.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml b/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml
index 4f3b66f..284a1fa 100644
--- a/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml
+++ b/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml
@@ -23,7 +23,7 @@
         accessKey: <access_key>
         secretKey: <secret_key>
         region: "eu-west-1"
-        getBody: true
+        getObject: true
       steps:
       - to: 
           uri: "kamelet:log-sink"


[camel-kamelets-examples] 01/02: Improved AWS S3 CDC Example

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-examples.git

commit c1990ddf016b55ceb1e190f4a049edb0b8726dd3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 11 14:54:49 2022 +0100

    Improved AWS S3 CDC Example
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 jbang/aws-s3-cdc/README.adoc         | 2 +-
 jbang/aws-s3-cdc/aws-s3-cdc-log.yaml | 4 ++--
 jbang/aws-s3-cdc/terraform/main.tf   | 1 +
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/jbang/aws-s3-cdc/README.adoc b/jbang/aws-s3-cdc/README.adoc
index 8f7a887..e0f568e 100644
--- a/jbang/aws-s3-cdc/README.adoc
+++ b/jbang/aws-s3-cdc/README.adoc
@@ -92,7 +92,7 @@ At this point you should be to run the configuration
 
 [source,sh]
 ----
-terraform apply -var="s3_bucket_name=s3-eventbridge-test" -var="sqs_queue_name=sqs-eventbridge-test"
+terraform apply -var="s3_bucket_name=s3-eventbridge-test-123" -var="sqs_queue_name=sqs-eventbridge-test-123"
 ----
 
 You can specify whatever bucket name or SQS name you want.
diff --git a/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml b/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml
index 103e3df..4f3b66f 100644
--- a/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml
+++ b/jbang/aws-s3-cdc/aws-s3-cdc-log.yaml
@@ -19,11 +19,11 @@
     from:
       uri: "kamelet:aws-s3-cdc-source"
       parameters:
-        queueNameOrArn: "test-queue-3"
+        queueNameOrArn: "sqs-eventbridge-test-123"
         accessKey: <access_key>
         secretKey: <secret_key>
         region: "eu-west-1"
-        getObject: "true"
+        getBody: true
       steps:
       - to: 
           uri: "kamelet:log-sink"
diff --git a/jbang/aws-s3-cdc/terraform/main.tf b/jbang/aws-s3-cdc/terraform/main.tf
index be498c7..4fc7da1 100644
--- a/jbang/aws-s3-cdc/terraform/main.tf
+++ b/jbang/aws-s3-cdc/terraform/main.tf
@@ -45,6 +45,7 @@ data "aws_caller_identity" "current" {}
 # Create a new S3 bucket
 resource "aws_s3_bucket" "MyS3Bucket" {
   bucket = var.s3_bucket_name
+  force_destroy = true
 }
 
 # Send notifications to EventBridge for all events in the bucket