Generate resource_name at server side instead of hard code