Passing Azure DevOps variable into Terraform

How can I pass (or reference) Azure DevOps variable into a Terraform main.tf file.
I’m using pileline variables.

Azure DevOps pipeline variables are set on the agent as an Environment Variable, so you would access it in your main.tf by referencing $ENV:variable

2 Likes