So here's my situation, I have a simple web app that uses a nodeJS api, a nextJS frontend and a postgreSQL database. The app is intended to be some kind of "demo" so there's already a bit of data provisioned in the database. The end goal is to be able to spin up new envs easily and eventually have this integrated with some other services we use. For example, if someone from HR creates a new user in service A, I'd trigger a rest call that will spin up a completely new env with all the bells and whistles.
I can easily use any cloud service to host multiple environments, I've done it with Heroku, EC2, Amplify, Netlify, etc. The thing is I'd like to be able to automate the create of a new environment via a rest api. Basically this is what I have in mind:
- I make a REST call to some service
- The service will then deploy the frontend app & backend app to a new env, create a new database, link everything together and provision the database with some basic data
Step 2 is pretty easy to do for most service using a CLI, but I couldn't find a service that will allow me to do step 1 easily. A lot of service will also allow me to do that automatically using git (think Heroku's review apps or Amplify's feature branch) but I don't want this env to be bound to a PR or a commit. The goal here is to trigger this via a simple rest call.
Of course I could have some onprem server with a jenkins or similar that would handle this for me, but I'd like to avoid that if possible. I would also ideally avoid the complexity of Terraform.
If anyone knows of cloud providers that allows that kind of stuff, or knows where to get started to build something like that I'd be very grateful!
Learn CSS From Here: https://www.tutorialology.com/css/
Top comments (0)