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 2023/07/11 10:02:50 UTC

[camel-kamelets] branch main updated (592a6a53 -> 8534c140)

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 592a6a53 Regen SBOM from commit 7bb29c9bf032494912cc01746f9aa1c25fbe9bdc
     new b739f6a8 Added AWS SQS Infra file for Ansible
     new 01cc9451 Added AWS SQS Infra file for Terraform
     new 8534c140 Added AWS SQS Infra file for Cloudformation

The 3 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:
 infra/{aws-s3 => aws-sqs}/Readme.md       | 10 +++++-----
 infra/aws-sqs/ansible/aws-sqs.yaml        | 10 ++++++++++
 infra/aws-sqs/cloudformation/aws-sqs.yaml | 11 +++++++++++
 infra/aws-sqs/terraform/main.tf           |  7 +++++++
 4 files changed, 33 insertions(+), 5 deletions(-)
 copy infra/{aws-s3 => aws-sqs}/Readme.md (63%)
 create mode 100644 infra/aws-sqs/ansible/aws-sqs.yaml
 create mode 100644 infra/aws-sqs/cloudformation/aws-sqs.yaml
 create mode 100644 infra/aws-sqs/terraform/main.tf


[camel-kamelets] 01/03: Added AWS SQS Infra file for Ansible

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 b739f6a8d82a58afa5f8de4f7ced4c88efba13f5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 11 11:34:35 2023 +0200

    Added AWS SQS Infra file for Ansible
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-sqs/Readme.md            | 52 ++++++++++++++++++++++++++++++++++++++
 infra/aws-sqs/ansible/aws-sqs.yaml | 10 ++++++++
 2 files changed, 62 insertions(+)

diff --git a/infra/aws-sqs/Readme.md b/infra/aws-sqs/Readme.md
new file mode 100644
index 00000000..fd13eb45
--- /dev/null
+++ b/infra/aws-sqs/Readme.md
@@ -0,0 +1,52 @@
+# Apache Camel Kamelets - AWS SQS Commodity Configuration files
+
+In this directory you'll find:
+
+- Ansible
+- Terraform
+- Cloudformation 
+
+Configuration files, to be used for creating your infra for using AWS S3 Kamelets.
+
+This will create an SQS Queue with basic functionalities.
+
+## Ansible
+
+The commmand to create the infra is:
+
+```bash
+ansible-playbook -v ansible/aws-sqs.yaml --extra-vars queue_name=<queue_name> --extra-vars region=<region>
+```
+
+## Terraform
+
+The commmand to create the infra is:
+
+```bash
+$ cd terraform/
+$ terraform init
+$ terraform apply -var="bucket_name=<bucket-name>"
+```
+
+Once completed do:
+
+```bash
+$ cd terraform/
+$ terraform destroy
+```
+
+## Cloudformation
+
+The commmand to create the infra is:
+
+```bash
+$ aws cloudformation deploy --template-file cloudformation/aws-s3.yaml --stack-name my-new-stack --parameter-overrides BucketName=<bucket-name>
+```
+
+Once completed do:
+
+```bash
+$ aws cloudformation delete-stack --stack-name my-new-stack
+```
+
+
diff --git a/infra/aws-sqs/ansible/aws-sqs.yaml b/infra/aws-sqs/ansible/aws-sqs.yaml
new file mode 100644
index 00000000..1dd3b5bb
--- /dev/null
+++ b/infra/aws-sqs/ansible/aws-sqs.yaml
@@ -0,0 +1,10 @@
+---
+- name: Create AWS SQS Queue
+  hosts: localhost
+  tasks:
+    - name: Create SQS Queue
+      community.aws.sqs_queue:
+        name: "{{ queue_name }}"
+        state: present
+        region: "{{ region }}"
+      register: created_queue


[camel-kamelets] 02/03: Added AWS SQS Infra file for Terraform

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 01cc94518b37fae9e2631bf7f25024f826b90c49
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 11 11:39:41 2023 +0200

    Added AWS SQS Infra file for Terraform
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-sqs/Readme.md         | 14 +-------------
 infra/aws-sqs/terraform/main.tf |  7 +++++++
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/infra/aws-sqs/Readme.md b/infra/aws-sqs/Readme.md
index fd13eb45..675be598 100644
--- a/infra/aws-sqs/Readme.md
+++ b/infra/aws-sqs/Readme.md
@@ -25,7 +25,7 @@ The commmand to create the infra is:
 ```bash
 $ cd terraform/
 $ terraform init
-$ terraform apply -var="bucket_name=<bucket-name>"
+$ terraform apply -var="queue_name=<queue-name>"
 ```
 
 Once completed do:
@@ -35,18 +35,6 @@ $ cd terraform/
 $ terraform destroy
 ```
 
-## Cloudformation
 
-The commmand to create the infra is:
-
-```bash
-$ aws cloudformation deploy --template-file cloudformation/aws-s3.yaml --stack-name my-new-stack --parameter-overrides BucketName=<bucket-name>
-```
-
-Once completed do:
-
-```bash
-$ aws cloudformation delete-stack --stack-name my-new-stack
-```
 
 
diff --git a/infra/aws-sqs/terraform/main.tf b/infra/aws-sqs/terraform/main.tf
new file mode 100644
index 00000000..425bf5d1
--- /dev/null
+++ b/infra/aws-sqs/terraform/main.tf
@@ -0,0 +1,7 @@
+variable "queue_name" {
+  type = string
+}
+
+resource "aws_sqs_queue" "example" {
+  name = var.queue_name
+}


[camel-kamelets] 03/03: Added AWS SQS Infra file for Cloudformation

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 8534c140a984a59d1d05bfe2fd2ccc861de66761
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Jul 11 11:45:33 2023 +0200

    Added AWS SQS Infra file for Cloudformation
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-sqs/Readme.md                   | 12 ++++++++++++
 infra/aws-sqs/cloudformation/aws-sqs.yaml | 11 +++++++++++
 2 files changed, 23 insertions(+)

diff --git a/infra/aws-sqs/Readme.md b/infra/aws-sqs/Readme.md
index 675be598..dda5ebb7 100644
--- a/infra/aws-sqs/Readme.md
+++ b/infra/aws-sqs/Readme.md
@@ -35,6 +35,18 @@ $ cd terraform/
 $ terraform destroy
 ```
 
+## Cloudformation
 
+The commmand to create the infra is:
+
+```bash
+$ aws cloudformation deploy --template-file cloudformation/aws-sqs.yaml --stack-name my-new-stack --parameter-overrides QueueName=<queue-name>
+```
+
+Once completed do:
+
+```bash
+$ aws cloudformation delete-stack --stack-name my-new-stack
+```
 
 
diff --git a/infra/aws-sqs/cloudformation/aws-sqs.yaml b/infra/aws-sqs/cloudformation/aws-sqs.yaml
new file mode 100644
index 00000000..afb32387
--- /dev/null
+++ b/infra/aws-sqs/cloudformation/aws-sqs.yaml
@@ -0,0 +1,11 @@
+Parameters:
+  QueueName:
+    Type: String
+    Description: The queue name.
+
+Resources:
+  SQSQueue:
+    Type: 'AWS::SQS::Queue'
+    Properties:
+      QueueName: 
+        Ref: QueueName