Optimized lookup by instance_id and handled AWSError for invalid instance_ids