enough-garden-22763
03/30/2023, 10:20 PMenough-garden-22763
04/20/2023, 3:11 PMbig-architect-71258
04/21/2023, 2:15 PMdry-potato-52542
04/25/2023, 10:22 PMenough-garden-22763
04/26/2023, 1:47 PMnarrow-match-14013
04/26/2023, 7:44 PMpulumi-tfgen-myprovider
needs to have the bridge-metadata.json
embedded, but is also the thing that generates it. I upgraded from pf/v0.6.0 to v0.8.1 and i'm hitting an error presumably because the bridge format has changed, but i can't regenerate it
error: fatal: failed to Init GRPC to register RPC handlers: failed to create resource provider: [pf/tfbridge] ProviderInfo.BridgeMetadata has no required 'renames' value
big-architect-71258
04/27/2023, 10:18 AMenough-garden-22763
05/11/2023, 1:38 AMenough-garden-22763
05/23/2023, 1:33 PMenough-garden-22763
05/26/2023, 6:43 PMerror: rpc error: code = Unknown desc = config value 'token' mismatch between servers 1 and a previous server
enough-garden-22763
05/26/2023, 6:44 PMbrainy-caravan-45245
#package-authoring
, so imma do thatbrainy-caravan-45245
early-ice-9668
06/01/2023, 1:48 AMmake build install
but there is something weird with the versions, so running
pulumictl get version
returns 0.0.1-alpha.1685580978+4aae2ffb.dirty, where is that coming from and how do I change it?microscopic-afternoon-22702
06/03/2023, 3:26 PMenough-garden-22763
06/05/2023, 1:40 PMbig-architect-71258
06/05/2023, 4:40 PMdry-potato-52542
06/05/2023, 6:54 PMgetResource
and getResourceOutput
Those data source also throwing this error:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x1b6c6e8]
goroutine 25 [running]:
<http://github.com/pulumi/pulumi-terraform-bridge/pf/internal/convert.(*encoding).NewDataSourceEncoder(0xc0003713a0|github.com/pulumi/pulumi-terraform-bridge/pf/internal/convert.(*encoding).NewDataSourceEncoder(0xc0003713a0>, {0xc0003b0408, 0x16}, {0xc000d50e10, 0x0, {0x0, 0x0, 0x0}})
/root/.cache/gomodcache/github.com/pulumi/pulumi-terraform-bridge/pf@v0.8.1/internal/convert/encoding.go:96 +0x88
<http://github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).datasourceHandle(0xc00046d600|github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).datasourceHandle(0xc00046d600>, {0x38679d0, 0xc000d50de0}, {0xc0003b0408, 0x16})
/root/.cache/gomodcache/github.com/pulumi/pulumi-terraform-bridge/pf@v0.8.1/tfbridge/provider_datasources.go:53 +0x1eb
<http://github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).InvokeWithContext(0xc00046d600|github.com/pulumi/pulumi-terraform-bridge/pf/tfbridge.(*provider).InvokeWithContext(0xc00046d600>, {0x38679d0?, 0xc000d50c60?}, {0xc0003b0408, 0x16}, 0x2dc013d8?)
/root/.cache/gomodcache/github.com/pulumi/pulumi-terraform-bridge/pf@v0.8.1/tfbridge/provider_invoke.go:41 +0x176
<http://github.com/pulumi/pulumi-terraform-bridge/pf/internal/plugin.(*providerServer).Invoke(0xc000bb32f0|github.com/pulumi/pulumi-terraform-bridge/pf/internal/plugin.(*providerServer).Invoke(0xc000bb32f0>, {0x38679d0, 0xc000d50c60}, 0xc00047ef00)
/root/.cache/gomodcache/github.com/pulumi/pulumi-terraform-bridge/pf@v0.8.1/internal/plugin/provider_server.go:505 +0x11d
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Invoke_Handler.func1({0x38679d0|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Invoke_Handler.func1({0x38679d0>, 0xc000d50c60}, {0x2f69500?, 0xc00047ef00})
/root/.cache/gomodcache/github.com/pulumi/pulumi/sdk/v3@v3.69.0/proto/go/provider_grpc.pb.go:480 +0x7b
<http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x38679d0|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x38679d0>, 0xc000d50a20}, {0x2f69500, 0xc00047ef00}, 0xc000472940, 0xc000421aa0)
/root/.cache/gomodcache/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3e8
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Invoke_Handler({0x30eff40|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Invoke_Handler({0x30eff40>?, 0xc000bb32f0}, {0x38679d0, 0xc000d50a20}, 0xc0008475e0, 0xc00078c080)
/root/.cache/gomodcache/github.com/pulumi/pulumi/sdk/v3@v3.69.0/proto/go/provider_grpc.pb.go:482 +0x138
<http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc0009905a0|google.golang.org/grpc.(*Server).processUnaryRPC(0xc0009905a0>, {0x3872ca0, 0xc000baa9c0}, 0xc000c1cc60, 0xc000bb3380, 0x4b4d0a0, 0x0)
/root/.cache/gomodcache/google.golang.org/grpc@v1.54.0/server.go:1345 +0xdf3
<http://google.golang.org/grpc.(*Server).handleStream(0xc0009905a0|google.golang.org/grpc.(*Server).handleStream(0xc0009905a0>, {0x3872ca0, 0xc000baa9c0}, 0xc000c1cc60, 0x0)
/root/.cache/gomodcache/google.golang.org/grpc@v1.54.0/server.go:1722 +0xa36
<http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
/root/.cache/gomodcache/google.golang.org/grpc@v1.54.0/server.go:966 +0x98
created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
/root/.cache/gomodcache/google.golang.org/grpc@v1.54.0/server.go:964 +0x28a
big-architect-71258
06/05/2023, 8:22 PMpulumi-terraform-bridge/pf
. @enough-garden-22763 and @ancient-policeman-24615 are working heavily on PF support. So v0.8.1 is pretty dated 😏big-architect-71258
06/05/2023, 8:22 PMenough-garden-22763
06/06/2023, 6:12 PMorange-policeman-59119
06/07/2023, 9:00 PMenough-garden-22763
06/07/2023, 9:59 PMicy-controller-6092
06/12/2023, 3:12 AM@grpc/grpc-js
is correctly printing the port, but unfortunately it's being wrapped in ANSI color codes...
pulumi:providers:pulumi-nodejs default error: pulumi-nodejs (resource) plugin [/opt/homebrew/bin/pulumi-resource-pulumi-nodejs] wrote a non-numeric port to stdout ('0'): strconv.Atoi: parsing "\x1b[33m65010\x1b[39m": invalid syntax
orange-policeman-59119
06/13/2023, 9:59 PMComputeDefaults
and AutoAliasing
, and we've also made PF based providers use the same tfbridge.ProviderInfo
as SDKv2 providers.
Implementing this, you'll modify your Provider
constructor (typically in resources.go
) to return or use the original tfbridge.ProviderInfo
instead of using a plugin framework (pf/tfbridge
) version. You'll pass the upstream provider to the P
field, as with SDKv2 providers, but you'll use pf.ShimProvider()
instead of shimv2.NewProvider
.
We have examples in our unit tests here:
https://github.com/pulumi/pulumi-terraform-bridge/blob/adfd7f99c35316d683a6fcd562f816ac3c765bb2/pf/tests/internal/testprovider/random.go#L64-L66enough-garden-22763
07/03/2023, 1:10 PMicy-oil-74929
07/03/2023, 3:55 PMenvironment
which should be an enum, how do I do that?
And lastly, I am getting this weird error:
panic: invalid Go source code:
amma/resources/init.go
: 35:18: expected operand, found '.' (and 1 more errors)
I cannot identify the cause 😕icy-oil-74929
07/03/2023, 4:24 PMpowerful-lighter-63321
07/14/2023, 8:37 AMbig-architect-71258
07/25/2023, 3:15 PMExtraFunctions
field in in the ProviderInfo
struct inside TF Bridge. How is it supposed to be used?
Backgroud: I wanna add a getClientToken
function to the Azure Classic provider. Just like the function which is available in the Azure Native provider.
I think I created the declaration correctly because tfgen
creates the `schema.json`file with the added function definition without an error.
ExtraFunctions: map[string]pschema.FunctionSpec{
"azure:core/getClientToken:getClientToken": {
Description: "Use this function to get an Azure authentication token for the current login context.",
Inputs: &pschema.ObjectTypeSpec{
Type: "string",
Description: "Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.",
},
Outputs: &pschema.ObjectTypeSpec{
Type: "string",
Description: "OAuth token for Azure Management API and SDK authentication.",
},
},
},
"azure:core/getClientToken:getClientToken": {
"description": "Use this function to get an Azure authentication token for the current login context.",
"inputs": {
"description": "Optional authentication endpoint. Defaults to the endpoint of Azure Resource Manager.",
"type": "string"
},
"outputs": {
"description": "OAuth token for Azure Management API and SDK authentication.",
"type": "string"
}
},
But now I'm stuck, because I don't know where to put the function implementation. Can someone help me here?
I found this PR of @microscopic-pilot-97530 that sheds some light on this. But neither I know how to create a multiplexed provider nor do I know how to
create an "overlay" 😀
https://github.com/pulumi/pulumi-terraform-bridge/pull/625