Skip to content

Conversation

@sbkok
Copy link
Collaborator

@sbkok sbkok commented Sep 26, 2022

Two blockers with the stale pipeline deletion process:

  1. Fix iterating over pipelines that need to be deleted:

    Why?

    At the moment, the input of the State Machine invocation that is handling
    delete operations is unwrapping the pipelines_to_be_deleted from the input.

    While the pipeline deletion State Machine also tries to do that.

    What?

    Iterating over the input elements directly instead in the pipeline deletion
    State Machine.

  2. Delete pipeline regions SSM Parameters after successful CloudFormation delete stack operation:

    Why?

    At the moment, when it determines which pipelines need to be deleted, it will
    also delete the parameters.

    However, if the deletion fails, the parameters have been deleted and it will
    not be able to detect that the stack needs to be deleted still.

    What?

    Moved the deletion of the SSM Parameters to the pipeline deletion state
    machine.


By submitting this pull request, I confirm that you can use, modify, copy, and
redistribute this contribution, under the terms of your choice.

@sbkok sbkok added the bug Something isn't working label Sep 26, 2022
@sbkok sbkok added this to the v3.2.0 milestone Sep 26, 2022
@sbkok sbkok changed the title Fix/pipeline deletion Fix stale pipeline deletion Sep 26, 2022
**Why?**

At the moment, the input of the State Machine invocation that is handling
delete operations is unwrapping the `pipelines_to_be_deleted` from the input.

While the pipeline deletion State Machine also tries to do that.

**What?**

Iterating over the input elements directly instead in the pipeline deletion
State Machine.
**Why?**

At the moment, when it determines which pipelines need to be deleted, it will
also delete the parameters.

However, if the deletion fails, the parameters have been deleted and it will
not be able to detect that the stack needs to be deleted still.

**What?**

Moved the deletion of the SSM Parameters to the pipeline deletion state
machine.
@sbkok sbkok force-pushed the fix/pipeline-deletion branch from 5d95a84 to 6fc3efa Compare September 26, 2022 17:07
@StewartW StewartW merged commit 6a74abd into awslabs:master Oct 3, 2022
@sbkok sbkok deleted the fix/pipeline-deletion branch December 22, 2022 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants