sparse-intern-71089
02/15/2021, 11:36 AMbrave-planet-10645
02/15/2021, 11:42 AMred-football-97286
02/15/2021, 11:43 AMbroad-helmet-79436
02/15/2021, 1:35 PMif (environment === 'prod') { … }
to include or exclude certain resources in certain environments is a huge win for readability in our code. We have a few diagnostic tools (like Polaris) that only run in non-prod environments, and making that work ended up being pretty unreadable in the tf config – at least from what my unexperienced self managed to come up with.
also also, I never managed to work around this annoying bug in tf https://github.com/hashicorp/terraform/issues/21702#issuecomment-525658662 which is still open a year and a half later
also also also, being able to use typescript for the infrastructure (which is what we use for practically everything else in our monorepo with 50-ish packages) is a huge win. hcl looks simple but in my experience definitely takes some getting used to, and it acts as a barrier that prevents other developers from contributing. getting people used to typescript started with pulumi has been pretty easy in comparison, so I don’t have to be the only one touching infra-related code 🙂broad-helmet-79436
02/15/2021, 1:36 PMred-football-97286
02/15/2021, 2:22 PM