Can i tell pulumi to fetch the configs from a git ...
# general
n
Can i tell pulumi to fetch the configs from a git repo url directly ? in a multi repo case for example ?
c
@nutritious-grass-41895 what do you mean by “configs”? Like, YAML files?
n
Not really the actual pulumi code. since all the configs are basically code
c
Hmm, I’m not quite sure I understand the use case… Can you publish them to NPM and reference them as libraries?
n
Apologies for not being clear here ...
Let me explain my use case
i have three repos defining a single application for example
{frontend,app,db}
..
if i have a single pulumi project that would reference these three repos that would be good
c
I see. Is there a reason you don’t want each of these apps to be a library, that you publish to NPM, and which the single Pulumi project uses?
n
the waork around would be to to git submodules and fetch all repose as if they were all in the same repo and make pulumi think that it was a single repo when deploying all
good .. point ..
c
So for example imagine something like this:
Copy code
import {deployment, serviceAccount} from "my-frontend"
that seems like it ought to work.
n
it should although i am more a go/java lang person than npm. but the circuitry would be the same
so the required extra step would be to treat the infrastructure code as an artifact to publish first
c
Yeah, me too.
n
Some of the repos source code have actual source script that would need to be published with the pulumi code as well
c
But yes, it’s pretty much the same.
yes, makes sense.