Why do you need that dispatch? My anecdata is that for Terraform, between v0.12 and v1.1, on the big three clouds, with quite complex configs, I never noticed a single problem which systemd unit would solve. Curiosity, not criticism.
Ok there's criticism as well: why do you need an alias and a script that calls that alias? Get rid of the alias, just paste it into a script then?
Do you need different versions of terraform in the same directory? (I suspect not, since that would break lck files) If not, you can use a .tool-version file with a directory-specific terraform version.
clone the terraform source repo
check out the tag you want compile/install the binary in a local bin dirctory, then manage a series of brittle aliases to disptach the proper version? (dispatch just runs things with memory and cpu limits) and of course, then you'd need a shitty little script to call your alias when other tools decide they want to call terraform Because that would be silly and dumb, and I totally don't do that for everything.Don't even get me started on virtualenvs.