def get_ips ( self , instance_id ) : instance = self . _load_instance ( instance_id ) IPs = sum ( instance . networks . values ( ) , [ ] ) return IPs
aws ec2 python get instance ips
Retrieves all IP addresses associated to a given instance .
def get_ips(self, instance_id):
        """Retrieves all IP addresses associated to a given instance.

        :return: tuple (IPs)
        """
        instance = self._load_instance(instance_id)
        IPs = sum(instance.networks.values(), [])
        return IPs