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

Polling resource's status upon deletion request #78

Open
Cohen-J-Omer opened this issue Sep 6, 2023 · 0 comments
Open

Polling resource's status upon deletion request #78

Cohen-J-Omer opened this issue Sep 6, 2023 · 0 comments

Comments

@Cohen-J-Omer
Copy link
Member

Hey team,
When conducting resource removal, e.g. VPC, one have to make sure resources are set for deletion only after necessary associated resources are completely removed, i.e. past the deletion process.
Resource deletion methods that I'm familiar with return the status code almost immediately, but do not hang until the process is finished.
Is there an implementation available that polls the resource's status and returns only when the specified outcome has been reached?

Use-case:

Deleting a subnet without making sure all of its instances are terminated will result in an error.
I would like to call a blocking version of VpcV1.DeleteInstance(), or use an equivalent to AWS' waiters.

Is any of that possible, or should i keep using a custom made polling solution?
Thanks.

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