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

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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