2020-11-25 17:02:21 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2021-05-17 10:55:57 -05:00
|
|
|
localexec "github.com/hashicorp/terraform/internal/builtin/provisioners/local-exec"
|
2020-11-25 17:02:21 -06:00
|
|
|
"github.com/hashicorp/terraform/internal/grpcwrap"
|
2021-05-17 14:35:22 -05:00
|
|
|
"github.com/hashicorp/terraform/internal/plugin"
|
2020-11-25 17:02:21 -06:00
|
|
|
"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())
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|