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
The atmos terraform clean command will clean up some well-known paths. However, running terraform commands and result in other temporary files getting created.
With this feature, atmos can clean up any files relative to the component's directory.
Path traversals (../../../../etc/passwd) are not allowed.
Running atmos terraform clean will purge all well-known locations (like it does now), in addition to matching any of the terraform.clean.paths configured.
Use Case
Terraform component used to provision a lambda produces a .zip file that is orphaned
Terraform component writes some temporary files that are not cleaned up
Describe the Feature
The
atmos terraform clean
command will clean up some well-known paths. However, running terraform commands and result in other temporary files getting created.With this feature, atmos can clean up any files relative to the component's directory.
Path traversals (
../../../../etc/passwd
) are not allowed.Expected Behavior
Running
atmos terraform clean
will purge all well-known locations (like it does now), in addition to matching any of theterraform.clean.paths
configured.Use Case
.zip
file that is orphanedDescribe Ideal Solution
Modify the Atmos config to support the following:
Alternatives Considered
We could create a "custom command" that also does this, but it's better that we have a core feature.
Additional Context
No response
The text was updated successfully, but these errors were encountered: