Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
klaphi opened this issue Oct 8, 2024 · 0 comments
Open

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

klaphi opened this issue Oct 8, 2024 · 0 comments

Comments

@klaphi
Copy link
Contributor

klaphi commented Oct 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant