-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add command to enable running terraform destroy
#193
Comments
Makes sense but could be dangerous, I would want the ability to enable/disable that support via config/cli args. |
I like this idea, as not all items have an idea of a count, or if you have to refactor you need the ability to delete. If this becomes an organizational wide tool, then the support for performing a terraform delete should be available. However the only way I could see this happening is with the assumption of remote state. |
How about |
We've implemented the |
We implemented it as another top-level action. Using our other patch to support GitHub teams, we're able to restrict who can call |
Atlantis can run
Thanks to @jolexa and @mechastorm for pointing this out. |
|
So this will destroy previously deployed resources through atlantis? |
it does, question answered |
another issue related to destroy and custom workflows: #612 |
why |
Because it didn't require any additional work. |
it introduces a bit of confusion though... |
@dimisjim if there were an Note, I say this as someone who forked and implemented |
I am commenting on this, as I think that this is not working while providing
|
Hi @kiddouk , did you find a solution to this issue? We'd like to use Atlantis but this might become a no-go issue. |
That should work. Do you have a custom workflow that's not using the built in plan step? |
Well, the workflow would be as follows:
|
@matthieudelaro i guess what Luke was asking is whether you use a custom workflow of Atlantis? Btw something i observed if you delete a file/folder Atlantis still normally plans it as it has just been added. I guess that it would make sense that if you drop a file or folder Atlantis and you submit it in Git then you expect Atlantis to create a plan that destroys that resource. If i understood correctly what you can do right now (by the above suggestions) is:
In my opinion the only issue is the number (2) as Atlantis should have created destruction plans without having the user create those. What other people think? |
bump. |
sorry to sound dumb, but if you delete the folder (and thereby the .hcl file), the |
Hello @jasonrberk ,
After applying that you can drop the files altogether. |
I don't use terragrunt, but it is common to do the following:
or delete the resources and leave the workspace folder. or |
@angeloskaltsikis this is brilliant! Thank you so much! |
* Moved CommandContext and CommandResult to models (#193) * Moved CommandContext and CommandResult to models * move from models to command rename CommandContext -> Context rename CommandResult -> Result * moved command related helpers into command package * move ProjectCommandContext and ProjectResult to command/project package * move project command context and project result * revert unrelated code * move tests * fix left over * fix linting * fix tests * remove unused import * fix project context dependencies * fix depenedecies * fix typo
unfortunately this does not work with multi-provider modules This is what the rror looks like:
|
* Moved CommandContext and CommandResult to models * move from models to command rename CommandContext -> Context rename CommandResult -> Result * moved command related helpers into command package * move ProjectCommandContext and ProjectResult to command/project package * move project command context and project result * revert unrelated code * move tests
…) (runatlantis#2093) * Moved CommandContext and CommandResult to models (runatlantis#193) * Moved CommandContext and CommandResult to models * move from models to command rename CommandContext -> Context rename CommandResult -> Result * moved command related helpers into command package * move ProjectCommandContext and ProjectResult to command/project package * move project command context and project result * revert unrelated code * move tests * fix left over * fix linting * fix tests * remove unused import * fix project context dependencies * fix depenedecies * fix typo
after 2 years, this is the solution I needed to use atlantis with terragrunt lol |
Do you know you can do a destroy plan?
that is a terraform flag. and the count way you are doing is totally valid. |
atlantis plan -- -destroy |
…es-filter find project paths based on filtered modified files
Test modules filtering bug that was fixed in runatlantis#193
No description provided.
The text was updated successfully, but these errors were encountered: