Unable to add path_routes in loadbalance using terraform

Hi,

Please assist me in terraform OCI issue, i am unable to add multiple path_routes in the load balancer using terraform.

unable to use count getting error that “name = var.path_route_set_name” already exists.

it is adding only one path_route . I need to skip var.path_route_set_name just add “path_routes”

Please find the error below…

resource "oci_load_balancer_path_route_set" "test_path_route_set" {
   #Required
   count = length(var.backend_set_name)
   load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
   name = var.path_route_set_name
   path_routes {
       #Required
        backend_set_name = var.backend_set_name[count.index]
        path = var.path_route_set_path_routes_path[count.index]
        path_match_type {
           #Required
           match_type = var.path_route_set_path_routes_path_match_type_match_type
       }
   }
}

ERROR:

oci_load_balancer_path_route_set.test_path_route_set[1]: Creating...
╷
│ Error: 400-InvalidParameter, Load balancer ocid1.loadbalancer.oc1.iad.aaaaaaaaacvufhmcqenlogbjj7xllvixjb4mhtisnout5vfvnmj4jbftu5pa already has PathRoute set 'rajini_pathset'
│ Suggestion: Please update the parameter(s) in the Terraform config as per error message Load balancer ocid1.loadbalancer.oc1.iad.aaaaaaaaacvufhmcqenlogbjj7xllvixjb4mhtisnout5vfvnmj4jbftu5pa already has PathRoute set 'rajini_pathset'