A domain should be linked to an existing resource. Try to create an instance or function first