atmos
atmos copied to clipboard
`atmos clean all` command
Have a question? Please checkout our Slack Community or visit our Slack Archive.
Describe the Feature
We've hit a few cases where the suggested remediation is to remove gitignored files in a component, including .terraform
modules, .tfstate
files, .backend.tf.json
files, lockfiles, etc. Often this is due to worries about stale modules / dependencies that should be re-pulled.
atmos clean
exists for a component/stack combination already. However, this is very tedious with a large number of components. It would be nice to have a quick command to clean up files that atmos generates with terraform (and optionally other tools).
Expected Behavior
atmos clean all
would nuke out all the above files in all folders starting from the root of the project. Nice messaging from the command on success.
Care to ensure deletions are limited to the root of a project and not over the bind-mounted file system.
Use Case
- Sanity when deploying a bunch of components.
- Debugging with other developers
Describe Ideal Solution
See above.
Alternatives Considered
Adding our own script / custom atmos command, but seems generally useful to other users of atmos.
Additional Context
