krystal / terraform-provider-katapult

Terraform Provider for Katapult.
https://registry.terraform.io/providers/krystal/katapult/latest/docs
MIT License
5 stars 2 forks source link

chore(destroy): more reliably wait for trash objects to be removed #103

Closed jimeh closed 1 year ago

jimeh commented 1 year ago

Check trash objects directly, and wait for them to disappear. Instead of simply waiting for the purge task we triggered to complete.

Some purge operations need to run as separate background tasks in Katapult, meaning the main task for the purge trash object request may finish before the object itself is fully deleted.


Also enhance VM destroyed check test helper to verify there's no trash object left, and fix a issue with the Security Group sweeper.