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

Move logical DB creation away from success status check #3333

Closed
jvmakine opened this issue Nov 6, 2024 · 0 comments · Fixed by #3377
Closed

Move logical DB creation away from success status check #3333

jvmakine opened this issue Nov 6, 2024 · 0 comments · Fixed by #3377
Assignees

Comments

@jvmakine
Copy link
Contributor

jvmakine commented Nov 6, 2024

Th DB creation should be part of the standard flow, not in a status check.

@github-actions github-actions bot added the triage Issue needs triaging label Nov 6, 2024
@ftl-robot ftl-robot mentioned this issue Nov 6, 2024
@jvmakine jvmakine self-assigned this Nov 6, 2024
@github-actions github-actions bot removed the triage Issue needs triaging label Nov 6, 2024
jvmakine added a commit that referenced this issue Nov 6, 2024
Connects to the freshly created psql instance, and creates a database if
it does not exist.

This closes #3117 with
tbdeng/ftl-aws#35

We should refactor the DB creation from the success step to be part of
the actual provisioning flow. Thicket for this:
#3333

We should also not use the root credentials when connecting to the DB
from a module. However, we should change this when looking at DB
migrations, when we won't expect modules to execute DDL anymore.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
jvmakine added a commit that referenced this issue Nov 13, 2024
Previously, we were `CREATE DATABASE ... ` as a response to a successful
status check. Now, we spawn a background goroutine to wait for the stack
to become ready and run any DDL commands before reporting the task as a
success.

Closes #3333

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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 a pull request may close this issue.

1 participant