Question: is there a best/cleanest way to handle t...
# general
w
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
You could wrap it in a conditional Boolean that only gets set in dev stack, otherwise it defaults to false
w
OK yeah, that was my naive solution, just wanted to check whether I was missing something cleaner. Thanks!
b
👍