Hey guys, do you add database setup to app projects?
08/04/2022, 7:16 AM
I’m using AWS RDS and GCP Cloud SQL. I’m separating the orchestration from the application code that depends on this database.
In this case, I have a Git repository with Pulumi code to provision a new database or instance and another for the application. The second uses Pulumi YAML to describe credentials in use and deployment. If a developer needs a new database or instance they can submit a PR to my repository and my pipelines will bring them the new resource, but if the developer needs to use a new resource, they just need to create a new Pulumi YAML file in their repository using environment variables defined in resource creation.