AFAIK terraform is for "infra as code". We use terraform to replicate the environment from one service provider to another.
Example we have a setup definition of 150 machines which run our query stack. This incurs quite a bill on aws :)
We wrote a terraform script to move this entire setup to GCM (still testing) but essentially this is what terraform does. again AFAIK :)