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 <[email protected]> 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 <[email protected]> --- 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
