Which kind of resource is this? Above you've defined to_ral as copy_as_resource.to_ral already