Terraform interop with code

Hello, we are evaluating terraform has a option to manage our infrastructure on Azure. We have requirements to start terraform from our code.
What is the recommendation here with the below requirement

  1. Start terraform from code
  2. Hopefully can run terraform async from code since it is usually long running
  3. Get the status of the operation once finished.

Hi @smithago

Welcome to the Terraform Community!

Terraform is a wonderful tool and it is also used in automated workflows by other tools like Terraform Cloud / Enterprise or Harness.

Take a look at:

I can imagine that if you want to run Terraform from code you want to call an API and not a binary, I don’t know if it is possible but wanted at least to give a quick answer. Sure someone will give a better answer!