Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(using-atlantis): add usage for -destroy flag in atlantis plan #3755

Merged
merged 7 commits into from
Sep 11, 2023

Conversation

leylmordor
Copy link
Contributor

what

  • Added usage instructions and a cautionary note for the -destroy flag in the atlantis plan command.
  • Included a disclaimer to warn users about the potential risks of using the -destroy flag.

why

  • To provide users with clear instructions on how to use the -destroy flag in atlantis plan.
  • To emphasize the importance of caution when performing destructive plans to prevent data loss or disruptions.

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>
@leylmordor leylmordor requested a review from a team as a code owner September 8, 2023 07:11
@github-actions github-actions bot added the docs Documentation label Sep 8, 2023
Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>
Copy link
Contributor

@jamengual jamengual left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the contribution @leylmordor

runatlantis.io/docs/using-atlantis.md Outdated Show resolved Hide resolved
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
atlantis plan -d dir -- -destroy
atlantis plan -- -destroy

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are cases where users may run on a different directory, so I think atlantis plan -d dir -- -destroy this could also be useful for new users to have

runatlantis.io/docs/using-atlantis.md Outdated Show resolved Hide resolved
leylmordor and others added 4 commits September 11, 2023 21:54
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>
@GenPage GenPage added the waiting-on-response Waiting for a response from the user label Sep 11, 2023
Copy link
Member

@GenPage GenPage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GenPage GenPage removed the waiting-on-response Waiting for a response from the user label Sep 11, 2023
@GenPage GenPage merged commit ca5aa85 into runatlantis:main Sep 11, 2023
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…unatlantis#3755)

* docs(using-atlantis): add usage for -destroy flag in atlantis plan

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>

* docs(using-atlantis): add closing to caution note

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>

* chore(atlantis): add example

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>

---------

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
ijames-gc pushed a commit to gocardless/atlantis that referenced this pull request Feb 13, 2024
…unatlantis#3755)

* docs(using-atlantis): add usage for -destroy flag in atlantis plan

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>

* docs(using-atlantis): add closing to caution note

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>

* Update runatlantis.io/docs/using-atlantis.md

Co-authored-by: PePe Amengual <jose.amengual@gmail.com>

* chore(atlantis): add example

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>

---------

Signed-off-by: Abdulla Mulail Mohamed <mulailmohamed@gmail.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants