Open pikonha opened 1 month ago
Sorry if it doesn't apply, but would the ci/cd migrations example be relevant here for the function invocation portion? https://sst.dev/docs/examples/#drizzle-migrations-in-cicd
I've been running it to create databases in a single instance and it works ok, by running create db before drizzle migrate.
I have an architecture of 5 microservices, each requiring its database. I now need a way to reuse the same RDS instance created by the
Postgres
resource, but dynamically creating a database for each of the services, which are going to increase in number over time (reach around 80 at the end).How can I achieve this programmatically? I've tried the
Function
approach, but couldn't make it work.