ensure_resource() doesn't support external resources.