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

witty-yacht-82771

11/03/2019, 12:12 PM
Question: is there a best/cleanest way to handle the pattern of conditionally creating resources? For example, my
dev
and
prod
stacks might deploy an RDS instance, while my
test
stack just provisions a small EC2 server running Postgres. The resources deployed in the cloud are totally different, but everything else in the db infrastructure is the same.
b

broad-dog-22463

11/03/2019, 12:56 PM
You could wrap it in a conditional Boolean that only gets set in dev stack, otherwise it defaults to false
w

witty-yacht-82771

11/03/2019, 1:09 PM
OK yeah, that was my naive solution, just wanted to check whether I was missing something cleaner. Thanks!
b

broad-dog-22463

11/03/2019, 1:36 PM
👍