Skip to content

EC2: Cleanup of Security Group and Keypair tasks are skipped  #280

Open
@klaphi

Description

Problem

The destroy.yml of the EC2 driver uses a wrong execution order. The tasks Write Molecule instance configs will immediately change the condition of the block. As soon as variable is cleaned all remaining tasks of the block will be skipped regardless of their when conditions. The cleanup tasks of for ephemeral security groups and keys will be skipped and the resources will stay.

Solution

Moving the tasks Write Molecule instance configs to the end of the destroy block. With that all destroy tasks will be executed and resources will be wiped.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions