2023-05-02 10:33:06 -05:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2020-11-19 17:37:04 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2021-05-17 10:55:57 -05:00
|
|
|
"github.com/hashicorp/terraform/internal/builtin/providers/terraform"
|
2020-11-19 17:37:04 -06:00
|
|
|
"github.com/hashicorp/terraform/internal/grpcwrap"
|
2021-05-17 14:35:22 -05:00
|
|
|
"github.com/hashicorp/terraform/internal/plugin"
|
2020-11-19 17:37:04 -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{
|
|
|
|
GRPCProviderFunc: func() tfplugin5.ProviderServer {
|
2020-11-25 17:02:21 -06:00
|
|
|
return grpcwrap.Provider(terraform.NewProvider())
|
2020-11-19 17:37:04 -06:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|