Hi again , I got error when run pulumi up but with...
# general
b
Hi again , I got error when run pulumi up but with target all looks ok , here is the error: error: an unhandled error occurred: program exited with non-zero exit code: 2 panic: runtime error: index out of range [0] with length 0, thanks in advance
e
That is not anywhere close to enough information to help debug this. Where exactly is that error coming from, is it attached to a resource error, is there any associated stack trace, etc...
b
Hi here is the stack trace
panic: runtime error: index out of range [0] with length 0
goroutine 239 [running]: github.com/pulumi/pulumi-aws/sdk/v5/go/aws/eks.NodeGroupResourceArrayOutput.Index.func1({0x140007aa000?, 0x104c51148?, 0x1?}) /Users/vadimsohin/go/pkg/mod/github.com/pulumi/pulumi-aws/sdk/v5@v5.1.0/go/aws/eks/pulumiTypes.go:1813 +0x98 reflect.Value.call({0x1058c30e0?, 0x105bf8118?, 0x140007150e8?}, {0x1055e340d, 0x4}, {0x1400003a2b8, 0x1, 0x1058421c0?}) /opt/homebrew/Cellar/go/1.21.4/libexec/src/reflect/value.go:596 +0x994 reflect.Value.Call({0x1058c30e0?, 0x105bf8118?, 0x18?}, {0x1400003a2b8?, 0x14000715101?, 0x104c5f9d0?}) /opt/homebrew/Cellar/go/1.21.4/libexec/src/reflect/value.go:380 +0x94 github.com/pulumi/pulumi/sdk/v3/go/pulumi.makeContextful.func1({0x1400003a2a0?, 0x5?, 0x8?}) /Users/vadimsohin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.28.0/go/pulumi/types.go:362 +0x58 reflect.Value.call({0x140003a3360?, 0x140003b4ed0?, 0x13?}, {0x1055e340d, 0x4}, {0x14000696f98, 0x2, 0x2?}) /opt/homebrew/Cellar/go/1.21.4/libexec/src/reflect/value.go:596 +0x994 reflect.Value.Call({0x140003a3360?, 0x140003b4ed0?, 0x1068b3020?}, {0x140003d0f98?, 0x0?, 0x0?}) /opt/homebrew/Cellar/go/1.21.4/libexec/src/reflect/value.go:380 +0x94 github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).ApplyTWithContext.func1() /Users/vadimsohin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.28.0/go/pulumi/types.go:470 +0x1dc created by github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*OutputState).ApplyTWithContext in goroutine 1 /Users/vadimsohin/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.28.0/go/pulumi/types.go:458 +0x224
e
That looks like your trying to index into the Resources result from a NodeGroup but it doesn't actually have any resources.
👍 1
b
ah ok thanks for clarify that!