hi all :wave: are there any new practices for con...
# general
i
hi all 👋 are there any new practices for configuring a provider with values that exist in the same stack? eg.
Copy code
import chart from './postgres-chart.js'
const provider = new postgres.Provider('pg-provider', {
  host: chart.service.name, ...
})
const role = new postgres.Role(..., { provider })
it's a bit clunky in practice, and you can easily mess up your program if you forget to add the
provider
option. Ideally you should be able to program the provider config during program execution
m
you can easily mess up your program if you forget to add the
provider
option
You can avoid this via https://www.pulumi.com/blog/disable-default-providers/
l
You can put values from one provider's resources into another provider's config. I would strongly consider separating these into different projects and using stack references to do this though.