Found the problem: licenses need to be created before resources.