genevieve / leftovers

Go cli & library for cleaning up orphaned IAAS resources.
Apache License 2.0
150 stars 22 forks source link

`leftovers` isn't finding VPCs on AWS #72

Closed nwmahoney closed 5 years ago

nwmahoney commented 5 years ago

leftovers output: screen shot 2019-01-15 at 5 03 34 pm

VPC section on AWS console: screen shot 2019-01-15 at 5 04 08 pm

As you can see above, the VPCs exist that match the filter, but leftovers isn't finding them ☹️ .

genevieve commented 5 years ago

That’s weird! What version of leftovers is this? The vpc code checks if the vpc id (name) contains the filter and also checks that the vpc is not the default, but otherwise, it returns it as deletable. The vpc and these other resources are also in the same region?

The vpc code hasn’t changed in a while so I’m really curious why it would be skipping or not seeing these vpcs.

genevieve commented 5 years ago

I wonder if this is an old version of leftovers because the formatting of the output is really unusual.

genevieve commented 5 years ago

Update

The vpcs were not showing up because they belonged to a different aws region than the one passed to leftovers. The iam resources are showing up because iam resources do not belong to any region, they are globally available resources.

nwmahoney commented 5 years ago

User error :)

Thanks!