2024-02-08 03:48:59 -06:00
|
|
|
// Copyright (c) The OpenTofu Authors
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
2023-05-02 10:33:06 -05:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2020-11-25 17:02:21 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2023-09-20 06:35:35 -05:00
|
|
|
localexec "github.com/opentofu/opentofu/internal/builtin/provisioners/local-exec"
|
|
|
|
"github.com/opentofu/opentofu/internal/grpcwrap"
|
|
|
|
"github.com/opentofu/opentofu/internal/plugin"
|
|
|
|
"github.com/opentofu/opentofu/internal/tfplugin5"
|
2020-11-25 17:02:21 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
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())
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|