You need to sign in or sign up before continuing.
Cancelled pipelines lead to instances avoiding cleanup
Context
Upon cancellation of a pipeline prior to the cleanup stage, the cleanup stage is cancelled and therefore terraform destroy ...
is never called. This leads to unnecessary costs on the AWS account and can be avoided manually by an AWS user terminating the EKS service.
With the current stage setup, this could prove difficult due to https://gitlab.com/gitlab-org/gitlab-ce/issues/20727
Task Description
Describe the steps to take / implementation plan. If it's a bug, do you know how it may be tackled?
- Implement a cleanup routine which runs regardless of cancellation.
Acceptance Criteria
Cancelling a pipeline should not bypass cleanup.