https://pulumi.com logo
#general
Title
# general
a

ambitious-ram-5811

11/01/2019, 10:01 PM
You can't be like
pulumi up -s ./path/to/index.js
or sth
t

tall-librarian-49374

11/01/2019, 10:05 PM
You could have an if in your
index.js
and choose the components based on the stack name
Like have
prod.js
and
staging.js
and import one of the other conditionally
a

ambitious-ram-5811

11/01/2019, 10:08 PM
Ooh! You're absolutely right!
Good idea 🙂