Github Pull Request

Is it possible to automagically spawn a new database for every pull request created on GitHub ? I would like to have a Pull Request Preview Environment and I would like to have a small database for every one of these.

Hi Ludovik ! Welcome to the forum !

So, this can be done but it won’t be completely automagic :sweat_smile:
You can leverage GitHub Action combined with our Terraform provider. A GH Action can be triggered for a pull request and from there you can run a terraform resource.
I have some resources for you that might help you :

Here , I’m using GH + Terraform for Kafka but spawning a DBs would be exactly the same approach.

Check also our Terraform documentation :

Hope this helps and feel free to reach out for any questions but also to share your solution if you manage to make it work !