Registry /
utility / hashicorp-terraform-exec
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
terraformexec
✓ github.com/hashicorp/terraform-exec
Creates a new Terraform executor instance.
package main
import (
"context"
"fmt"
"github.com/hashicorp/terraform-exec/tfexec"
)
func main() {
tf, err := tfexec.NewTerraform("/path/to/terraform", "/path/to/config")
if err != nil {
panic(err)
}
fmt.Println(tf)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.25.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.