Can Pulumi and Terraform both exist within a proje...
# general
e
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
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
thanks @cool-egg-852 that is a good point,
but does Pulumi prevent from getting into partial states that I encountered with Terraform?
c
Not sure what you mean.
e
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
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
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