Hi there. I’m trying to create a certificate `gcp:...
# google-cloud
b
Hi there. I’m trying to create a certificate
gcp:certificateauthority:Certificate
but I get this segfault. Pulumi GCP SDK is v8.10.2.
Copy code
panic: interface conversion: interface {} is nil, not map[string]interface {}
    goroutine 1174 [running]:
    <http://github.com/hashicorp/go-cty/cty.Value.GetAttr({{{0x107be2b10|github.com/hashicorp/go-cty/cty.Value.GetAttr({{{0x107be2b10>?, 0x14002394590?}}, {0x0?, 0x0?}}, {0x1062d9bce, 0x2})
    	/home/runner/go/pkg/mod/github.com/hashicorp/go-cty@v1.4.1-0.20200414143053-d3edf31b6320/cty/value_ops.go:711 +0x25c
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*v2InstanceState2).ID(0x14001874390?)|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.(*v2InstanceState2).ID(0x14001874390?)>
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.97.1/pkg/tfshim/sdk-v2/provider2.go:92 +0x3c
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Create(0x14000981988|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Create(0x14000981988>, {0x107be20b8?, 0x14002cf20f0?}, 0x1400624ef50)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.97.1/pkg/tfbridge/provider.go:1349 +0x728
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/x/muxer.(*muxer).Create.func1({0x107c03da0|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/x/muxer.(*muxer).Create.func1({0x107c03da0>?, 0x14000981988?})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.97.1/pkg/x/muxer/muxer.go:376 +0x3c
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/x/muxer.resourceMethod[...](0x1400628e300|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/x/muxer.resourceMethod[...](0x1400628e300>?, 0x1079365c0, 0x14009d63698?)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.97.1/pkg/x/muxer/muxer.go:335 +0xc4
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/x/muxer.(*muxer).Create(0x10c94cb60|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/x/muxer.(*muxer).Create(0x10c94cb60>?, {0x107be20b8?, 0x14002cf20f0?}, 0x1070b1600?)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.97.1/pkg/x/muxer/muxer.go:375 +0x50
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler.func1({0x107be20b8|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler.func1({0x107be20b8>?, 0x14002cf20f0?}, {0x1079093e0?, 0x1400624ef50?})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.142.0/proto/go/provider_grpc.pb.go:815 +0xd0
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x107be20b8|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x107be20b8>, 0x14002ccf7a0}, {0x1079093e0, 0x1400624ef50}, 0x14006b0e4a0, 0x14001ccc1c8)
    	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2d4
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler({0x107b01300|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Create_Handler({0x107b01300>, 0x1400628e300}, {0x107be20b8, 0x14002ccf7a0}, 0x140051e9500, 0x1400098a1e0)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.142.0/proto/go/provider_grpc.pb.go:817 +0x148
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0x140005ba400|google.golang.org/grpc.(*Server).processUnaryRPC(0x140005ba400>, {0x107be20b8, 0x14002ccf710}, {0x107bf9660, 0x14006161040}, 0x1400848a240, 0x14001448960, 0x10c9b58b8, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.67.1/server.go:1394 +0xb64
    <http://google.golang.org/grpc.(*Server).handleStream(0x140005ba400|google.golang.org/grpc.(*Server).handleStream(0x140005ba400>, {0x107bf9660, 0x14006161040}, 0x1400848a240)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.67.1/server.go:1805 +0xb20
    <http://google.golang.org/grpc.(*Server).serveStreams.func2.1()|google.golang.org/grpc.(*Server).serveStreams.func2.1()>
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.67.1/server.go:1029 +0x84
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func2|google.golang.org/grpc.(*Server).serveStreams.func2> in goroutine 73
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.67.1/server.go:1040 +0x13c
a
Hey, sorry about that. This looks like https://github.com/pulumi/pulumi-gcp/issues/2723 It should be fixed in 8.10.2 can you give that a try?
b
I use the latest 8.10.2
The problem was GCP linter didn’t allow creating a certificate, and Pulumi didn’t handle it nicely.'
a
Yeah, this looks like a pretty bad user experience. Can I ask you to open an issue in https://github.com/pulumi/pulumi-gcp/issues with details of the problem and a code sample which reproduces it?
b
I don’t have an error message anymore, and I’ve fixed my code. It should be easy to reproduce if you use
Tier: "DEVOPS"
in this example https://www.pulumi.com/registry/packages/gcp/api-docs/certificateauthority/certificate/#privateca-certificate-generated-key
CrlSign: false
might also have been related.
a
The panic doesn't repro for me. Glad you've fixed it on your side too