Hi, I'm migrating a manually maintained set of lambdas, databases, vpc's, security groups etc. to one which is instead fully managed by Pulumi. I've run into a slightly confusing problem regarding database migrations, and I'm struggling to find any examples documenting best practices.
We use C# with Entity Framework, and the current build process is: Build projects -> Run DB Migrations -> Deploy code. We can do this because the manually created databases are known in advance, so the connection strings can be injected into the build. However with Pulumi the connection string is now calculated within the Deploy step, therefore I'm thinking the DB Migration step needs to be folded within the Pulumi Deploy step.
The problem is that the only resource I seem to be able to find on the topic is
this Medium post from 2019 which makes we worry that I'm going about this completely wrong. Is this solution of having a one-off task which is deployed, run, and monitored for completion before continuing to deploy code changes an expected normal solution, or is there some far easier way?