We need to investigate and implement an effective strategy to clean up stale deployments from feature branches that are left deployed for extended periods, resulting in unnecessary costs. This process could be designed as either a pipeline that periodically reaches out and checks for pipeline or branch activity within a 7 day timeframe, following which it automatically destroys any inactive stacks, or as a manual trigger that cleans up all deployed feature branches when needed.
This issue can start out as a simple cleanup pipeline for all pipelines and later into evolve into a automatic cleanup.
Acceptance Criteria:
Research and decide on an efficient method for cleanup of stale deployments.
Implement the cleanup pipeline.
The cleanup process should not interfere with the operation of active pipelines/branches & main branch.
We need to investigate and implement an effective strategy to clean up stale deployments from feature branches that are left deployed for extended periods, resulting in unnecessary costs. This process could be designed as either a pipeline that periodically reaches out and checks for pipeline or branch activity within a 7 day timeframe, following which it automatically destroys any inactive stacks, or as a manual trigger that cleans up all deployed feature branches when needed.
This issue can start out as a simple cleanup pipeline for all pipelines and later into evolve into a automatic cleanup.
Acceptance Criteria: