-
Notifications
You must be signed in to change notification settings - Fork 79
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: Change logic of deleting resources #279
EC2: Change logic of deleting resources #279
Conversation
This will fix: #280 |
While the change looks fine (the cleanup should always be done in the end imho), some questions for you:
|
I was running into this issue as well (ephemeral security groups not being deleted during destroy), and this change resolved the issue. Thank you @klaphi !
I assume there is some lazy loading of the
The scenario init with
|
Thanks for confirming it's working for someone else. It's helping me making a decision :)
hm. I see...
Ok, so the files were manually copied. That's confirming what I've suspected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how it's working but someone else confirmed the issue and that the fix is solving it, so I'm approving
d027722
to
e8b4f00
Compare
…, because this task changes the when condition of the block immediately and following tasks will be skipped regardless ot their when condition.
e8b4f00
to
223119b
Compare
This PR changes the logic of deleting resources of the EC2 driver. Without that change security groups and keypairs will stay because the tasks will be skipped.
The tasks
Write Molecule instance configs
changes the when condition of the block immediately. This will skip the following tasks regardless of their when conditions. Moving the tasksWrite Molecule instance configs
to the end of the block will execute the cleanup of Security groups and keypairs according to their own when condition.