Read config as resource.