Slackbot
12/22/2023, 2:24 PMRB
12/22/2023, 2:26 PMfind /atlantis/plugin-cache -atime +100 -delete
Which should remove files if they haven't been accessed in 100 days
Ref https://stackoverflow.com/a/53574389/2965993Hans Lambermont
12/22/2023, 2:42 PMfind '<data_dir>/plugin-cache/registry.terraform.io' -mindepth 1 -type f -not -newerat '-2 weeks' -delete
find '<data_dir>/plugin-cache/registry.terraform.io' -mindepth 1 -type d -empty -deleteRB
12/22/2023, 5:43 PMRB
12/25/2023, 7:31 PMRB
01/13/2024, 12:01 AMfind command in a pre_workflow_hook to remove files that haven’t been accessed in a while and it’s doing a good job with keeping the mounted volume from filling up. Please try it out to see if it helps others.
https://github.com/runatlantis/atlantis/issues/3238#issuecomment-1869094337