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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add clean command #2435
Add clean command #2435
Conversation
making this a draft because the outputs are broken after running clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this with:
vast-cloud deploy
vast-cloud init
vast-cloud init --clean
vast destroy
Which seems to work (destroy is still in progress). The PR review instructions don't match, but otherwise everything seems to be fine. Actual usability will be determined the next time terraform enters a borked state, which won't be too long into the future I suppose.
It happens that some terraform/terragrunt cache files are left behind after destroying a stack, which can impact subsequent deployments. We propose adding a
./vast-cloud init
command that runs init again on all modules. It also has a--clean
option that removes the files from previous inits first.馃摑 Checklist
馃幆 Review Instructions
init
on all modules has been made possible by addingmock_outputs
on every terragrunt dependencydeploy
commands, then runinit
orinit --clean
and then continue with other operations