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:35:40 UTC

[camel-kamelets] branch main updated: AWS SQS Removal in infra: Added Ansible removal for SQS Queue (#1545)

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


The following commit(s) were added to refs/heads/main by this push:
     new b432fcde AWS SQS Removal in infra: Added Ansible removal for SQS Queue (#1545)
b432fcde is described below

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

    AWS SQS Removal in infra: Added Ansible removal for SQS Queue (#1545)
    
    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