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/19 12:34:41 UTC

[camel-kamelets] branch aws-sqs-infra-removal created (now ac02441b)

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

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


      at ac02441b AWS SQS Removal in infra: Added Ansible removal for SQS Queue

This branch includes the following new commits:

     new ac02441b AWS SQS Removal in infra: Added Ansible removal for SQS Queue

The 1 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] 01/01: AWS SQS Removal in infra: Added Ansible removal for SQS Queue

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

commit ac02441bb1521b8e8c98205959edb58511b220fe
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 19 14:34:19 2023 +0200

    AWS SQS Removal in infra: Added Ansible removal for SQS Queue
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 infra/aws-sqs/Readme.md                    |  6 ++++++
 infra/aws-sqs/ansible/aws-sqs-removal.yaml | 10 ++++++++++
 2 files changed, 16 insertions(+)

diff --git a/infra/aws-sqs/Readme.md b/infra/aws-sqs/Readme.md
index dda5ebb7..77491510 100644
--- a/infra/aws-sqs/Readme.md
+++ b/infra/aws-sqs/Readme.md
@@ -18,6 +18,12 @@ The commmand to create the infra is:
 ansible-playbook -v ansible/aws-sqs.yaml --extra-vars queue_name=<queue_name> --extra-vars region=<region>
 ```
 
+Once completed do:
+
+```bash
+ansible-playbook -v ansible/aws-sqs-removal.yaml --extra-vars queue_name=<queue_name> --extra-vars region=<region>
+```
+
 ## Terraform
 
 The commmand to create the infra is:
diff --git a/infra/aws-sqs/ansible/aws-sqs-removal.yaml b/infra/aws-sqs/ansible/aws-sqs-removal.yaml
new file mode 100644
index 00000000..a3359876
--- /dev/null
+++ b/infra/aws-sqs/ansible/aws-sqs-removal.yaml
@@ -0,0 +1,10 @@
+---
+- name: Remove AWS SQS Queue
+  hosts: localhost
+  tasks:
+    - name: Remove SQS Queue
+      community.aws.sqs_queue:
+        name: "{{ queue_name }}"
+        state: absent
+        region: "{{ region }}"
+      register: removed_queue