Skip to content

Fail if Custom Resource can't connect to Database#13

Open
bogdankatishev wants to merge 2 commits intobinxio:masterfrom
vrtdev:feature/mysql-connection-timeout
Open

Fail if Custom Resource can't connect to Database#13
bogdankatishev wants to merge 2 commits intobinxio:masterfrom
vrtdev:feature/mysql-connection-timeout

Conversation

@bogdankatishev
Copy link

This PR fixes this old "closed" issue: #6
To avoid waiting/hanging for a hour till cloudformation stops the update/delete itself.

In cloudformation, you will get this output

2022-05-11 17:49:59 UTC+0200 MySQLUserTest  CREATE_FAILED Received response status [FAILED] from custom resource. Message returned: Failed to create user, "Error while connecting to MySQL 2003: Can't connect to MySQL server on '$db-endpoint:$db-port' (timed out) ...

This will then trigger a ROLLBACK_IN_PROGRESS and then ROLLBACK_COMPLETE, all under 1 minute.

bogdankatishev added a commit to vrtdev/custom-resources that referenced this pull request May 11, 2022
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

Successfully merging this pull request may close these issues.

1 participant