atmos icon indicating copy to clipboard operation
atmos copied to clipboard

`atmos clean all` command

Open pk-nb opened this issue 2 years ago • 0 comments

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

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

Screen Shot 2022-12-05 at 11 52 23 AM

pk-nb avatar Dec 05 '22 16:12 pk-nb