If there a way to run specific pulumi script? I me...
# general
s
If there a way to run specific pulumi script? I mean I have for ex index1.js, index2.js - different deployment scripts. and I want to do somenthings like -
pulumi up index1.js
p
they'd have to have separate state, since they dont do the same things, right? therefor each one would have to have it's own stack. I'd say move them into their own directories (and abstract common functionality. or, since the stacks would have to be different, just do some internal hooks on the stack name (
pulumi.getStack()
) to perform differently?
s
yes, it's different. I can have different stacks but each of them related to one index.js
and I can't specify concrete script.js