https://pulumi.com logo
#aws
Title
# aws
g

gifted-barista-41153

04/23/2023, 1:01 AM
Hi, Iโ€™m unable to upgrade to
@pulumi/aws
to a version >= 5.35.0 (changelog) on an existing stack because I get the following error:
panic: interface conversion: interface {} is nil, not map[string]interface {}
(full error message in thread ๐Ÿงต) Does anyone know what I can do to remedy this?
Full error message:
Copy code
Previewing update (prod):
     Type                 Name                     Plan     Info
     pulumi:pulumi:Stack  infrastructure-prod               32 messages
     โ””โ”€ aws:wafv2:IpSet   ita-cloudflare-ipv6-ips           1 error


Diagnostics:
  aws:wafv2:IpSet (ita-cloudflare-ipv6-ips):
    error: error reading from server: EOF

  pulumi:pulumi:Stack (infrastructure-prod):
    panic: interface conversion: interface {} is nil, not map[string]interface {}
    goroutine 105 [running]:
    <http://github.com/hashicorp/go-cty/cty.Value.GetAttr({{{0x1125968f8|github.com/hashicorp/go-cty/cty.Value.GetAttr({{{0x1125968f8>?, 0x14002d8ccc0?}}, {0x0?, 0x0?}}, {0x10dc33d94, 0x9})
        /home/runner/go/pkg/mod/github.com/hashicorp/go-cty@v1.4.1-0.20200414143053-d3edf31b6320/cty/value_ops.go:711 +0x260
    <http://github.com/hashicorp/terraform-provider-aws/internal/service/wafv2.ResourceIPSet.func2({0x2|github.com/hashicorp/terraform-provider-aws/internal/service/wafv2.ResourceIPSet.func2({0x2>?, 0x112595698?}, {0x14000216008?, 0x10dc33d94?}, {0x9?, 0x14001cb6140?}, 0x14005162c58?)
        /home/runner/work/pulumi-aws/pulumi-aws/upstream/internal/service/wafv2/ip_set.go:59 +0x3c
    <http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diff(0x10dc2787f|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.diff(0x10dc2787f>?, {0x112595698, 0x14000216008}, {0x10dc33d94, 0x9}, 0x14001cb6140, 0x14000125300, {0x1125a3950?, 0x14000125380}, 0x0)
        /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20220824175045-450992f2f5b9/helper/schema/schema.go:1143 +0x274
    <http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0x14001ca4cc0|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.schemaMap.Diff(0x14001ca4cc0>, {0x112595698, 0x14000216008}, 0x140031e60d0, 0x140031c2150, 0x14001c90300, {0x11243c700, 0x140015bd800}, 0x0)
        /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20220824175045-450992f2f5b9/helper/schema/schema.go:679 +0x2a0
    <http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0x110794640|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).SimpleDiff(0x110794640>?, {0x112595698?, 0x14000216008?}, 0x140031e60d0, 0x0?, {0x11243c700?, 0x140015bd800?})
        /home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20220824175045-450992f2f5b9/helper/schema/resource.go:895 +0x50
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Provider.simpleDiff({0x1400051c2a0|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Provider.simpleDiff({0x1400051c2a0>?, {0x14000c56a20?, 0x14005159c70?, 0x10?}}, 0x14000680000?, 0x140031c2150?, 0x0?, 0x0?, {{{0x1125968f8?, 0x14002d8c8e0?}}, ...}, ...)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.43.0/pkg/tfshim/sdk-v2/provider_diff.go:73 +0x570
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Provider.Diff({0x1400051c2a0|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Provider.Diff({0x1400051c2a0>?, {0x0?, 0x14001ca4cc0?, 0x14005159930?}}, {0x10dc745ff, 0x10}, {0x112596d90?, 0x140031bb5d0}, {0x1124cf8e0, 0x140031c2150})
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.43.0/pkg/tfshim/sdk-v2/provider_diff.go:54 +0x1f4
    <http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Diff(0x14002c3cc80|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Diff(0x14002c3cc80>, {0x112595708?, 0x1400318bc80?}, 0x14001a513b0)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.43.0/pkg/tfbridge/provider.go:785 +0x40c
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x112595708|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x112595708>, 0x1400318bc80}, {0x111dfd180?, 0x14001a513b0})
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.59.0/proto/go/provider_grpc.pb.go:555 +0x74
    <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x112595708|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x112595708>, 0x1400318bad0}, {0x111dfd180, 0x14001a513b0}, 0x140031a9d20, 0x140031ab878)
        /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x30c
    <http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x1122c8120|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x1122c8120>?, 0x14002c3cc80}, {0x112595708, 0x1400318bad0}, 0x14001a51340, 0x14002d62300)
        /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.59.0/proto/go/provider_grpc.pb.go:557 +0x138
    <http://google.golang.org/grpc.(*Server).processUnaryRPC(0x14000880000|google.golang.org/grpc.(*Server).processUnaryRPC(0x14000880000>, {0x1125a6840, 0x140021fa1a0}, 0x1400318f9e0, 0x14002d5cde0, 0x11ad432e8, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.53.0/server.go:1336 +0xb7c
    <http://google.golang.org/grpc.(*Server).handleStream(0x14000880000|google.golang.org/grpc.(*Server).handleStream(0x14000880000>, {0x1125a6840, 0x140021fa1a0}, 0x1400318f9e0, 0x0)
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.53.0/server.go:1704 +0x82c
    <http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.53.0/server.go:965 +0x84
    created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
        /home/runner/go/pkg/mod/google.golang.org/grpc@v1.53.0/server.go:963 +0x290
Looks like updating to 5.38.0 (released 3 hours ago) fixed this
2 Views