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

big-potato-91793

03/21/2019, 10:43 PM
Hey, wanna know what is the best way to have config file by environment like
stage
and
prod
?
c

creamy-potato-29402

03/21/2019, 10:45 PM
@big-potato-91793 you mean, beyond
pulumi config set ...
?
b

broad-football-5123

03/21/2019, 10:45 PM
Have you created a stack for each environment?
b

big-potato-91793

03/21/2019, 10:46 PM
yeah, i would like to have one stack for deploying es service in aws but i have 3 different environment how should i do it?
"best"
way 🙂, i’m starting with pulumi so i’m trying to do a poc my company
b

broad-football-5123

03/21/2019, 10:47 PM
You would create one Pulumi project with 3 stacks, one for each environment
b

big-potato-91793

03/21/2019, 10:48 PM
ok, do you have one example on github or somewhere? I could use the same file for creating my service?
b

broad-football-5123

03/21/2019, 10:48 PM
But this will explain what a stack is https://pulumi.io/reference/stack.html
b

big-potato-91793

03/21/2019, 10:49 PM
awesome thank you sir 🙂
c

creamy-potato-29402

03/21/2019, 10:50 PM
yeah, that’s one way to do it. someday I think we’ll have facilities that let you do things like diff between environments. but stacks are the way to go for now.
b

big-potato-91793

03/21/2019, 10:57 PM
all right!! What is the way to debug a
up
. with the
preview
command?
c

creamy-potato-29402

03/21/2019, 11:00 PM
what are you trying to do?
preview
tells you what’s going to happen.
b

big-potato-91793

03/21/2019, 11:20 PM
debug what i have in my
index.ts
😬
c

creamy-potato-29402

03/21/2019, 11:20 PM
That could mean a whole bunch of things, though
preview
is basically a dry run. Is that not enough information?
b

big-potato-91793

03/21/2019, 11:23 PM
yeah i think i’m good with it 😉