mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 00:42:48 -04:00
20 lines
580 B
Go
20 lines
580 B
Go
// Copyright IBM Corp. 2014, 2026
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package main
|
|
|
|
import (
|
|
localexec "github.com/hashicorp/terraform/internal/builtin/provisioners/local-exec"
|
|
"github.com/hashicorp/terraform/internal/grpcwrap"
|
|
"github.com/hashicorp/terraform/internal/plugin"
|
|
"github.com/hashicorp/terraform/internal/tfplugin5"
|
|
)
|
|
|
|
func main() {
|
|
// Provide a binary version of the internal terraform provider for testing
|
|
plugin.Serve(&plugin.ServeOpts{
|
|
GRPCProvisionerFunc: func() tfplugin5.ProvisionerServer {
|
|
return grpcwrap.Provisioner(localexec.New())
|
|
},
|
|
})
|
|
}
|