do an environment lookup for resource