2020-11-20 17:30:12 +01:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/terraform/internal/grpcwrap"
|
2021-05-17 21:35:22 +02:00
|
|
|
"github.com/hashicorp/terraform/internal/plugin"
|
2020-11-20 17:30:12 +01:00
|
|
|
simple "github.com/hashicorp/terraform/internal/provider-simple"
|
|
|
|
"github.com/hashicorp/terraform/internal/tfplugin5"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
plugin.Serve(&plugin.ServeOpts{
|
|
|
|
GRPCProviderFunc: func() tfplugin5.ProviderServer {
|
2020-11-26 00:02:21 +01:00
|
|
|
return grpcwrap.Provider(simple.Provider())
|
2020-11-20 17:30:12 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|