Skip to content

Fix Terraform plugin cache path and add a plugin cache cleanup step in Atlantis

What

  • Fix Terraform plugin cache path
  • Add a plugin cache cleanup step in Atlantis, keeping only the 2 most recent versions

Why

  • Cache path had a " -" suffix from the sha1sum output
  • Terraform can't cleanup old plugin by itself, so we have to do it ourselves to avoid filling up the volume with every update

Part of https://gitlab.com/gitlab-com/gl-infra/reliability/-/issues/24613

Merge request reports