Skip to content

panic when deathnode iterates over already terminated instance #4

Description

@frimik

instance.go:

	return &InstanceMonitor{
		autoscalingGroupID:  autoscalingGroupID,
		ipAddress:           *response.PrivateIpAddress,
		instanceID:          instanceID,
		lifecycleState:      lifecycleState,
		isProtected:         isProtected,
		ctx:                 ctx,
		tagRemovalTimestamp: tagRemovalTimestamp,
	}, nil

in this case, the response.PrivateIpAddress will be nil <*string> and you will panic.

Handle it and finish the lifecycle on this instance if you find that is needed. Otherwise you will continually panic until the instance lifecycle timeout expires (3600 seconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions