Index.lifecycle.rollover_alias template settings

Hello Team,

We've scenario where we have multiple index with different names (Example: ordercode-domino , ordercode-ecofee , ordercode-chassis), Earlier we have one template for all these index with pattern as (ordercode-*).

Now we want to implement ILM policies to rollover these index.
Single template with pattern (ordercode-*) for all these index will worked ? If yes, then how can it possible in the template settings index.lifecycle.rollover_alias will have the same alias name? It will be rollover using ordercode alias (ordercode-domino-000001, ordercode-domino-000002), But I don't think this will manage the proper data insertion for all the mentioned index.

PUT _template/ordercode-template
{
  "index_patterns": [
    "ordercode-*"
  ],
  "mappings": {
    "dynamic": "true",
    "date_detection": true,
    "dynamic_templates": [
      {
        "strings": {
          "match_mapping_type": "string",
          "mapping": {
            "fields": {
              "keyword": {
                "ignore_above": 256,
                "type": "keyword"
              }
            },
            "type": "text"
          }
        }
      }
    ]
  },
  "settings": {
    "index.lifecycle.name": "7-day-rollover-policy",
    "index.lifecycle.rollover_alias": "ordercode"
  }
}

===============================================
PUT ordercode-domino-000001
{
  "aliases": {
    "ordercode": {
      "is_write_index": true
    }
  }
}

What will happen for ordercode-ecofee , ordercode-chassis index ?

My assumptions is that we have to create separate index_template with dedicated index.lifecycle.rollover_alias for each index individually.
Please let me know, if there is any alternatives for this situation.

Thank you!

You will need one for each of ordercode-domino, ordercode-ecofee etc etc.

Ok , so there is no way to have single template for all these index.

No, because the write alias will all be different for each of them.

Thank you so much for the confirmation