Skip to content

Error when trying to list SG or ENI's #5

@renato-mota

Description

@renato-mota

Hello! I have been trying to use this project to help us clean our AWS Accounts, mainly to deal with the Orphan ENI problem. It seems very well built and useful, but when I tried to list our SG's, I got this error

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x8ce9dd]

goroutine 1121 [running]:
github.com/cloud-crafts/sg-ripper/pkg/core/clients.(*AwsEcsClient).buildCache(0xc000371860, {0xb57ab8, 0xf1aa20})
	/home/renato/ZeDefault/limpeza_recursos_vpc/sg-ripper/pkg/core/clients/ecsclient.go:90 +0x31d
github.com/cloud-crafts/sg-ripper/pkg/core/clients.(*AwsEcsClient).GetEcsAttachment(_, {_, _}, {0xc00039cb00, 0xc00032a9c0, 0xc0004b9b60, 0x0, 0xc0004b9b70, {0xc0004453b0, 0x1, ...}, ...})
	/home/renato/ZeDefault/limpeza_recursos_vpc/sg-ripper/pkg/core/clients/ecsclient.go:31 +0xd4
github.com/cloud-crafts/sg-ripper/pkg/core/builders.(*EniDetailsBuilder).getEcsAttachmentAsync(_, {_, _}, {0xc00039cb00, 0xc00032a9c0, 0xc0004b9b60, 0x0, 0xc0004b9b70, {0xc0004453b0, 0x1, ...}, ...}, ...)
	/home/renato/ZeDefault/limpeza_recursos_vpc/sg-ripper/pkg/core/builders/enidetailsbuilder.go:142 +0x78
created by github.com/cloud-crafts/sg-ripper/pkg/core/builders.(*EniDetailsBuilder).FromRemoteInterfaces in goroutine 1
	/home/renato/ZeDefault/limpeza_recursos_vpc/sg-ripper/pkg/core/builders/enidetailsbuilder.go:53 +0x89b

Is there some kind of limit on how many resources we can have in our accounts?

go run main.go list -n
This is the command I tried. When I pass the list of SGs to be listed, it works fine

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions