Looking for some help troubleshooting internal err...
# general
r
Looking for some help troubleshooting internal error:
Copy code
Diagnostics:
  pulumi:pulumi:Stack (secure-notes-dev):
    panic: interface conversion: interface {} is nil, not map[string]interface {}
    goroutine 148 [running]:
    <http://github.com/hashicorp/go-cty/cty.Value.GetAttr({{{0x110ac7f60|github.com/hashicorp/go-cty/cty.Value.GetAttr({{{0x110ac7f60>?, 0x1400af03a20?}}, {0x0?, 0x0?}}, {0x10c48e165, 0x8})
    	/home/runner/go/pkg/mod/github.com/hashicorp/go-cty@v1.4.1-0.20200723130312-85980079f637/cty/value_ops.go:711 +0x258
    <http://github.com/hashicorp/terraform-provider-aws/internal/provider.tagsResourceInterceptor.run({0x14000ed3340|github.com/hashicorp/terraform-provider-aws/internal/provider.tagsResourceInterceptor.run({0x14000ed3340>?, 0x1109630e0?, 0x1109630d8?}, {0x110ac7a88, 0x1400c2ab050}, {0x110ad8df0, 0x14008ae5200}, {0x110901360?, 0x1400003a000?}, 0x1, ...)
    	/home/runner/work/pulumi-aws/pulumi-aws/upstream/internal/provider/intercept.go:250 +0xea4
    <http://github.com/hashicorp/terraform-provider-aws/internal/provider.New.(*wrappedResource).Update.interceptedHandler[...].func10(0x0|github.com/hashicorp/terraform-provider-aws/internal/provider.New.(*wrappedResource).Update.interceptedHandler[...].func10(0x0>?, {0x110901360?, 0x1400003a000?})
    	/home/runner/work/pulumi-aws/pulumi-aws/upstream/internal/provider/intercept.go:100 +0x11c
    <http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x110ac7b68|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x110ac7b68>?, {0x110ac7b68?, 0x11b75b2e0?}, 0xd?, {0x110901360?, 0x1400003a000?})
    	/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20230912190043-e6d96b3b8f7e/helper/schema/resource.go:812 +0x64
    <http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x14001487960|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x14001487960>, {0x110ac7b68, 0x11b75b2e0}, 0x140031bcb60, 0x14008ae5000, {0x110901360, 0x1400003a000})
    	/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20230912190043-e6d96b3b8f7e/helper/schema/resource.go:924 +0x658
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Provider.Apply({0x14000d20240|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Provider.Apply({0x14000d20240>?, {0x14000b121f0?, 0x1400786e050?, 0x0?}}, {0x10c4b9b12, 0xe}, {0x110ac7f98?, 0x1400bceef48}, {0x110ad8918?, 0x14008ae5000})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.63.2/pkg/tfshim/sdk-v2/provider.go:100 +0x140
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Update(0x1400063e2c0|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Update(0x1400063e2c0>, {0x110ac7a88?, 0x1400c2109c0?}, 0x1400af005a0)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.63.2/pkg/tfbridge/provider.go:975 +0x6d0
    <http://github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Update.func1({0x110af8508|github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Update.func1({0x110af8508>?, 0x1400063e2c0?})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.7-0.20230801203955-5d215c892096/muxer.go:356 +0x3c
    <http://github.com/pulumi/pulumi-terraform-bridge/x/muxer.resourceMethod[...](0x1400af86c80|github.com/pulumi/pulumi-terraform-bridge/x/muxer.resourceMethod[...](0x1400af86c80>?, 0x1400b019788, 0x1400b019768?)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.7-0.20230801203955-5d215c892096/muxer.go:303 +0xc4
    <http://github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Update(0x1400b0197c8|github.com/pulumi/pulumi-terraform-bridge/x/muxer.(*muxer).Update(0x1400b0197c8>?, {0x110ac7a88?, 0x1400c2109c0?}, 0x10e4189c0?)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/x/muxer@v0.0.7-0.20230801203955-5d215c892096/muxer.go:355 +0x5c
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Update_Handler.func1({0x110ac7a88|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Update_Handler.func1({0x110ac7a88>, 0x1400c2109c0}, {0x1105050e0?, 0x1400af005a0})
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.91.1/proto/go/provider_grpc.pb.go:629 +0x74
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x110ac7a88|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x110ac7a88>, 0x1400c210570}, {0x1105050e0, 0x1400af005a0}, 0x1400aefbe00, 0x1400bceef18)
    	/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x2e8
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Update_Handler({0x110783a40|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Update_Handler({0x110783a40>?, 0x1400af86c80}, {0x110ac7a88, 0x1400c210570}, 0x1400bb73c00, 0x1400969d6e0)
    	/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.91.1/proto/go/provider_grpc.pb.go:631 +0x12c
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0x14000814000|google.golang.org/grpc.(*Server).processUnaryRPC(0x14000814000>, {0x110adac60, 0x1400bd97ba0}, 0x1400c216240, 0x140028e3890, 0x11b7075d0, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:1376 +0xb44
    <http://google.golang.org/grpc.(*Server).handleStream(0x14000814000|google.golang.org/grpc.(*Server).handleStream(0x14000814000>, {0x110adac60, 0x1400bd97ba0}, 0x1400c216240, 0x0)
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:1753 +0x7c4
    <http://google.golang.org/grpc.(*Server).serveStreams.func1.1()|google.golang.org/grpc.(*Server).serveStreams.func1.1()>
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:998 +0x84
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1> in goroutine 56
    	/home/runner/go/pkg/mod/google.golang.org/grpc@v1.58.2/server.go:996 +0x154

    error: update failed

  aws:iam:Policy (bucket_access_policy):
    error: error reading from server: EOF
Copy code
> pulumi about
CLI
Version      3.94.2
Go Version   go1.21.3
Go Compiler  gc

Plugins
NAME    VERSION
aws     6.8.0
python  unknown

Host
OS       darwin
Version  13.6
Arch     arm64
g
I noticed that a lot of panic popped up recently. Have you updated your pulumi version or AWS provider version? I tried to replicate my panic but I found out that if I create the resource within the same version of pulumi+aws nothing happens. I suspect this is caused by some resource update between versions. for more info https://pulumi-community.slack.com/archives/CJ909TL6P/p1698999835968989
r
interesting. yes, I did update pulumi cli (responding to its nagging 😆 ) shortly before the panic started... hopefully pulumi folks here take notice
s
@refined-quill-24494 I'm wondering if you opened an GH issue for this one?
r
no, although I should've in the hindsight. I have since destroyed and recreated the stack (as I had the option to do so and it was "the easiest fix") and can't reproduce at the fist glance. @steep-sunset-89396 other than these two options (file an issue and hope it gets attention soon) and cycle the entire stack, are there any additional tricks one can try when faced with panic error like this?
s
All good. Especially with `panic`s it's important for us to be made aware of those since they indicate something is broken somehow.
t
Can you give 6.9.0 a try? This sounds like https://github.com/pulumi/pulumi-aws/issues/2904 which shipped in 6.9.0.