Skip to content

Security group is not deleted on shutdown #43

@michalbiarda

Description

@michalbiarda

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions