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

Security group is not deleted on shutdown #43

Open
michalbiarda opened this issue Oct 6, 2022 · 0 comments
Open

Security group is not deleted on shutdown #43

michalbiarda opened this issue Oct 6, 2022 · 0 comments
Labels
Milestone

Comments

@michalbiarda
Copy link
Contributor

michalbiarda commented Oct 6, 2022

An error occurs while deleting security group on shutdown. It seems that in the moment of deletion there is still some network connected with this resource. It should be possible to delete a security group after few seconds. Let's create a loop that will try delete security group every 5 seconds until it succeed, or reach a timeout (2 minutes?).

vendor/bin/driver run build --environment local -vvv throws error at the end:

Driver\Engines\MySql\Sandbox\Shutdown - Error executing "DeleteSecurityGroup" on "https://ec2.us-east-2.amazonaws.com"; AWS HTTP error: Client error: `POST https://ec2.us-east-2.amazonaws.com` resulted in a `400 Bad Request` response:
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>DependencyViolation</Code><Message>resource sg-0a5 (truncated...)
 DependencyViolation (client): resource sg-0a5167606502af563 has a dependent object - <?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>DependencyViolation</Code><Message>resource sg-0a5167606502af563 has a dependent object</Message></Error></Errors><RequestID>57cd13d3-5ea1-4d2d-a64a-7f2a3a4d941d</RequestID></Response>
@michalbiarda michalbiarda added this to the 4.1.0 milestone Oct 6, 2022
@michalbiarda michalbiarda moved this to Todo in Driver Oct 6, 2022
@michalbiarda michalbiarda changed the title Security group is not deteted on shutdown Security group is not deleted on shutdown Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant