https://pulumi.com logo
#general
Title
# general
c

crooked-jordan-34725

07/02/2019, 6:31 AM
I’m trying to create a new pulumi provider (wrapping a terraform one), and I followed all the instructions but the
cmd/pulumi-tfgen-xyz
command blows up with:
Copy code
/Users/txus/go/pkg/mod/github.com/pulumi/pulumi-terraform@v0.18.4-0.20190622203420-512f93e9d8c3/pkg/tfbridge/provider.go:189:5: cannot use (*Provider)(nil) (type *Provider) as type pulumirpc.ResourceProviderServer in assignment:
	*Provider does not implement pulumirpc.ResourceProviderServer (wrong type for Configure method)
		have Configure("context".Context, *pulumirpc.ConfigureRequest) (*empty.Empty, error)
		want Configure("context".Context, *pulumirpc.ConfigureRequest) (*pulumirpc.ConfigureResponse, error)
/Users/txus/go/pkg/mod/github.com/pulumi/pulumi-terraform@v0.18.4-0.20190622203420-512f93e9d8c3/pkg/tfbridge/serve.go:30:21: cannot use NewProvider("context".TODO(), host, module, version, info.P, info) (type *Provider) as type pulumirpc.ResourceProviderServer in return argument:
	*Provider does not implement pulumirpc.ResourceProviderServer (wrong type for Configure method)
		have Configure("context".Context, *pulumirpc.ConfigureRequest) (*empty.Empty, error)
		want Configure("context".Context, *pulumirpc.ConfigureRequest) (*pulumirpc.ConfigureResponse, error)
2 Views