code: def list_ip(self, instance_id):
          
          output = self.client.describe_instances(InstanceIds=[instance_id])
          output = output.get("Reservations")[0].get("Instances")[0]
          ips = {}
          ips['PrivateIp'] = output.get("PrivateIpAddress")
          ips['PublicIp'] = output.get("PublicIpAddress")
          return ips
docs: Add all IPs