https://pulumi.com logo
e

elegant-twilight-2745

11/21/2019, 3:10 PM
Can Pulumi and Terraform both exist within a project? So that if someone still wants to work with Terraform and deploy to AWS, and I use Pulumi to deploy to the same AWS cluster? is that ok?
c

cool-egg-852

11/21/2019, 3:24 PM
You can, but you shouldn’t.
As long as the resources you use in one or the other stay within the confines of that IaC, you are fine.
AKA you can NEVER have both IaC tools manage the same resources.
I haven’t a clue though why you’d want to use both tools.
e

elegant-twilight-2745

11/21/2019, 3:26 PM
thanks @cool-egg-852 that is a good point,
but does Pulumi prevent from getting into partial states that I encountered with Terraform?
c

cool-egg-852

11/21/2019, 3:26 PM
Not sure what you mean.
e

elegant-twilight-2745

11/21/2019, 3:27 PM
in the past when I was working with Terraform, I think due to race conditions, deployed went into some meta state and resulted in failed deploy
c

cool-egg-852

11/21/2019, 3:29 PM
If you are talking about a k8s deployment being in a failed deployment state, of course, that’s always possible given your deployment may fail to actually start (pods crashing for example). Unless you mean something else.
Though I’ve not experienced any sort of race condition issues.
Especially not if you handle your
dependsOn
correctly
e

elegant-twilight-2745

11/21/2019, 3:30 PM
in terraform by declarative, we dont know what dependsOn what until we specify correct? and if there are race conditions, then only when terraform apply happens would you find some error at deployment