Registry / utility / hashicorp-terraform-exec

hashicorp-terraform-exec

JSON →
library0.25.2gogounverified

A Go library for executing Terraform commands programmatically.

go get github.com/hashicorp/terraform-exec
INSTALL
IMPORT
SIG · HASHICORP-TERRAFOR
H
hashicorp-terraform-exec
utilitygov0.25.2
harness data pending
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.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
hashicorp-terraform-exec — go get hashicorp-terraform-exec · libregistry