Add logical_id to resource hash.