I’m used to web frameworks that manage and run database migrations (e.g. Rails, Django).
I’d like my serverless project to have something similar, so that I can keep a directory of migrations and have the database run them during a deploy. (Caveat: I only think I want this because its what I’m used to. I’m all ears to other suggestions.)
The database I’m working with now is an RDS Postgres instance. Because my lambda functions have access to this RDS instance through specific subnet and security group, I’m thinking that what I might want is a lambda function that runs migrations.
Is this crazy? Is there some other recommended way to run migrations for Serverless apps?