You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
atmos terraform clean does not work. The cli help states, that without stack or component provided it will clean all components in all stacks, but running atmos terraform clean just returns the help and doesn't actually clean anything. Even running with --everything (which I actually do not want) just outputs component '' is not enabled and skipped.
It does work if run with a component and stack provided, but not in either other combination as stated in the help as well.
Expected Behavior
atmos should clean terraform files
Steps to Reproduce
Run atmos terraform clean. Just outputs the help.
atmos terraform clean --everything. Outputs: component '' is not enabled and skipped
atmos terraform clean -s <stack> also just outputs the help.
atmos terraform clean <component> reports that a stack is required
atmos terraform clean <component> -s <stack> does work
Screenshots
No response
Environment
OS: OSX
Version: 1.128.0
terraform version: 1.8.2
Additional Context
'atmos terraform clean' command deletes the following folders and files from the component's directory:
'.terraform' folder
folder that the 'TF_DATA_DIR' ENV var points to
'.terraform.lock.hcl' file
generated varfile for the component in the stack
generated planfile for the component in the stack
generated 'backend.tf.json' file
'terraform.tfstate.d' folder (if '--everything' flag is used)
Usage: atmos terraform clean -s
Use '--everything' flag to also delete the Terraform state files and and directories with confirm message.
Use --force to forcefully delete Terraform state files and directories for the component.
If no component is specified, the command will apply to all components and stacks.
If no stack is specified, the command will apply to all stacks for the specified component.
Use '--skip-lock-file' flag to skip deleting the '.terraform.lock.hcl' file.
If no component or stack is specified, the clean operation will apply globally to all components.
Describe the Bug
atmos terraform clean
does not work. The cli help states, that without stack or component provided it will clean all components in all stacks, but runningatmos terraform clean
just returns the help and doesn't actually clean anything. Even running with--everything
(which I actually do not want) just outputscomponent '' is not enabled and skipped
.It does work if run with a component and stack provided, but not in either other combination as stated in the help as well.
Expected Behavior
atmos should clean terraform files
Steps to Reproduce
Run
atmos terraform clean
. Just outputs the help.atmos terraform clean --everything
. Outputs:component '' is not enabled and skipped
atmos terraform clean -s <stack>
also just outputs the help.atmos terraform clean <component>
reports that a stack is requiredatmos terraform clean <component> -s <stack>
does workScreenshots
No response
Environment
Additional Context
'atmos terraform clean' command deletes the following folders and files from the component's directory:
Usage: atmos terraform clean -s
Use '--everything' flag to also delete the Terraform state files and and directories with confirm message.
Use --force to forcefully delete Terraform state files and directories for the component.
Use '--skip-lock-file' flag to skip deleting the '.terraform.lock.hcl' file.
If no component or stack is specified, the clean operation will apply globally to all components.
For more details refer to https://atmos.tools/cli/commands/terraform/clean
The text was updated successfully, but these errors were encountered: