Company
Date Published
Author
Nikolai Kovalenko
Word count
1005
Language
English
Hacker News points
None

Summary

You can spin up a PostgreSQL database on a Cloud SQL instance for a new non-production environment using Humanitec, completely on your own. To do this, you need to define the database as a resource and match it to the criteria it should meet to be provisioned. This includes selecting the correct driver, providing credentials for the Cloud SQL instance, setting the environment type, and defining matching criteria. Once you have defined these settings, you can deploy your application into a new dev environment, which will automatically spin up and test the new database. The beauty of Humanitec lies in its ability to provide a new PostgreSQL database for each application, for all deployments, to all environments that meet the resource definition and matching criteria, eliminating the need to perform the definition every time you deploy an application.