From 3a30fe1032b637df540d37e218979dc2edcf68a5 Mon Sep 17 00:00:00 2001 From: Abdulla Mulail Mohamed Date: Fri, 8 Sep 2023 15:10:28 +0800 Subject: [PATCH 1/5] docs(using-atlantis): add usage for -destroy flag in atlantis plan Signed-off-by: Abdulla Mulail Mohamed --- runatlantis.io/docs/using-atlantis.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/runatlantis.io/docs/using-atlantis.md b/runatlantis.io/docs/using-atlantis.md index de03dde278..5200e44de5 100644 --- a/runatlantis.io/docs/using-atlantis.md +++ b/runatlantis.io/docs/using-atlantis.md @@ -79,6 +79,17 @@ atlantis plan -d dir -- -var foo='bar' ``` If you always need to append a certain flag, see [Custom Workflow Use Cases](custom-workflows.html#adding-extra-arguments-to-terraform-commands). +### Using the -destroy Flag + +#### Example +To perform a destructive plan that will destroy resources in the specified directory, you can use the `-destroy` flag like this: + +```bash +atlantis plan -d dir -- -destroy +``` +::: warning NOTE +The `-destroy` flag initiates resource destruction, which can result in data loss or service disruptions. Ensure that you have thoroughly reviewed your Terraform configuration and intend to remove the specified resources before using this flag. + --- ## atlantis apply ```bash From 2cc25168252672aa1d0255c4f77ed17c0a4e209d Mon Sep 17 00:00:00 2001 From: Abdulla Mulail Mohamed Date: Fri, 8 Sep 2023 15:19:00 +0800 Subject: [PATCH 2/5] docs(using-atlantis): add closing to caution note Signed-off-by: Abdulla Mulail Mohamed --- runatlantis.io/docs/using-atlantis.md | 1 + 1 file changed, 1 insertion(+) diff --git a/runatlantis.io/docs/using-atlantis.md b/runatlantis.io/docs/using-atlantis.md index 5200e44de5..aab6058c57 100644 --- a/runatlantis.io/docs/using-atlantis.md +++ b/runatlantis.io/docs/using-atlantis.md @@ -89,6 +89,7 @@ atlantis plan -d dir -- -destroy ``` ::: warning NOTE The `-destroy` flag initiates resource destruction, which can result in data loss or service disruptions. Ensure that you have thoroughly reviewed your Terraform configuration and intend to remove the specified resources before using this flag. +::: --- ## atlantis apply From 7a316398d79253a543cb4707cedc635bca08e762 Mon Sep 17 00:00:00 2001 From: "Mulail Mohamed (Muley)" Date: Mon, 11 Sep 2023 22:54:40 +0800 Subject: [PATCH 3/5] Update runatlantis.io/docs/using-atlantis.md Co-authored-by: PePe Amengual --- runatlantis.io/docs/using-atlantis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runatlantis.io/docs/using-atlantis.md b/runatlantis.io/docs/using-atlantis.md index aab6058c57..0acac174e3 100644 --- a/runatlantis.io/docs/using-atlantis.md +++ b/runatlantis.io/docs/using-atlantis.md @@ -82,7 +82,7 @@ If you always need to append a certain flag, see [Custom Workflow Use Cases](cus ### Using the -destroy Flag #### Example -To perform a destructive plan that will destroy resources in the specified directory, you can use the `-destroy` flag like this: +To perform a destructive plan that will destroy resources you can use the `-destroy` flag like this: ```bash atlantis plan -d dir -- -destroy From 8b3a8610f217eb324fb6302cf262b41a566a672c Mon Sep 17 00:00:00 2001 From: "Mulail Mohamed (Muley)" Date: Mon, 11 Sep 2023 22:55:24 +0800 Subject: [PATCH 4/5] Update runatlantis.io/docs/using-atlantis.md Co-authored-by: PePe Amengual --- runatlantis.io/docs/using-atlantis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runatlantis.io/docs/using-atlantis.md b/runatlantis.io/docs/using-atlantis.md index 0acac174e3..917aec9d23 100644 --- a/runatlantis.io/docs/using-atlantis.md +++ b/runatlantis.io/docs/using-atlantis.md @@ -88,7 +88,7 @@ To perform a destructive plan that will destroy resources you can use the `-dest atlantis plan -d dir -- -destroy ``` ::: warning NOTE -The `-destroy` flag initiates resource destruction, which can result in data loss or service disruptions. Ensure that you have thoroughly reviewed your Terraform configuration and intend to remove the specified resources before using this flag. +The `-destroy` flag generates a destroy plan, If this plan is applied it can result in data loss or service disruptions. Ensure that you have thoroughly reviewed your Terraform configuration and intend to remove the specified resources before using this flag. ::: --- From 6474ac4a41ba288abeafdeea15f38fc70c62b973 Mon Sep 17 00:00:00 2001 From: Abdulla Mulail Mohamed Date: Mon, 11 Sep 2023 22:59:13 +0800 Subject: [PATCH 5/5] chore(atlantis): add example Signed-off-by: Abdulla Mulail Mohamed --- runatlantis.io/docs/using-atlantis.md | 1 + 1 file changed, 1 insertion(+) diff --git a/runatlantis.io/docs/using-atlantis.md b/runatlantis.io/docs/using-atlantis.md index 917aec9d23..8009440a14 100644 --- a/runatlantis.io/docs/using-atlantis.md +++ b/runatlantis.io/docs/using-atlantis.md @@ -85,6 +85,7 @@ If you always need to append a certain flag, see [Custom Workflow Use Cases](cus To perform a destructive plan that will destroy resources you can use the `-destroy` flag like this: ```bash +atlantis plan -- -destroy atlantis plan -d dir -- -destroy ``` ::: warning NOTE