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 09:46:24 UTC

[camel-kamelets] branch aws-sqs-infra created (now 89902ba1)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch aws-sqs-infra
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


      at 89902ba1 Added AWS SQS Infra file for Cloudformation

This branch includes the following new commits:

     new 5dcb95a4 Added AWS SQS Infra file for Ansible
     new 8c2b8241 Added AWS SQS Infra file for Terraform
     new 89902ba1 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.



[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 aws-sqs-infra
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 89902ba1430baac1107793dfb500f215d7e6842a
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


[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 aws-sqs-infra
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 5dcb95a4c7948ee7569c2ab322d13231be452a73
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 aws-sqs-infra
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 8c2b82412ad992574a480b48c5834cadbf3a9aa9
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
+}