divyenduz / languagelearners

LingoParrot - LanguageLearners.club
1 stars 0 forks source link

[WIP] feat(state): init migration IaC #33

Closed divyenduz closed 5 years ago

divyenduz commented 5 years ago

Implements #24 - Proof of concept

Current Idea:

  1. Perform migrations using a ephemeral Prisma server
  2. A terraform configuration will allow creation of this ephemeral "on-demand" Prisma server for performing migrations
  3. Later, migrations can be done in CI
  4. Lambda function talks to SQL directly using some type-safe SQL query builder, this enables us to have declarative migrations but still be purely serverless (provided Aurora serverless works with Lambda)

This is a proof of concept idea, let us see how this looks in coming days.

Future:

  1. In place of remote-exec, packer can be used to speed up instance image creation and free us from vendor locking.
divyenduz commented 5 years ago

This PR is not relevant anymore with merging of https://github.com/divyenduz/LingoParrot/pull/35