Too many VPC's in my account


I have more than 10 VPC in my account. Is there any smart way I could figure out which VPC's are in use and which are not or not linked to any resource?

1 Respuesta

An AWS CLI command like this would describe every instance that has a network interface in the VPC (this would be a pretty good indicator that the service is active):

aws ec2 describe-network-interfaces --filters Name=vpc-id,Values=vpc-12345678910abcdef

If this is too verbose you could filter this with -query 'NetworkInterfaces[*].[RequesterId,Description]'

This is one of several good suggestions from

profile picture
respondido hace 4 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas