Terraform state cleanup policy
Release notes
Problem to solve
As a Platform Engineer, I would like to clean up ephemeral Terraform states on a regular basis, so I can keep a more manageable interface around Terraform states for my users.
WIP Proposal
Ideas:
- Provide a CI component and documentation that can be easily set up as a scheduled job to remove state files following a certain pattern
- Provide a CI component and documentation that can be easily set up as a scheduled job to remove state files filtered by a condition (e.g. no MR for the branch with the state name)
- Provide a GUI to configure cleanup policies
- Could be related to environments, MRs or branches
Intended users
Feature Usage Metrics
WIP: depends on the implemented idea