AWS ES Index Template Not Being Updated

Hello, I’m using AWS ES Service. I’m trying to create an index template but when I try to get my template details it returns empty. I’ve shared the code snippets i’m using. I couldn’t figure out why get request doesn’t return setting, alias and other details… Maybe I’m creating template in wrong way?

PUT _template/cwl
{
  "index_patterns": [
    "cwl-*"
  ],
  "template": {
    "aliases": {
      "cwl": {}
    },
    "settings": {
      "number_of_shards": 1,
      "number_of_replicas": 3,
      "opendistro.index_state_management.policy_id": "hot_to_delete_workflow"
    }
  }
}

GET _template/cwl
{
  "cwl" : {
    "order" : 0,
    "index_patterns" : [
      "cwl-*"
    ],
    "settings" : { },
    "mappings" : { },
    "aliases" : { }
  }
}

Hey @oerdem, not something I’ve seen before. Feel free to cut a support case on the managed service and you should be able to get some help.

1 Like

@dbbaughe Thank you for reply, i’ll contact the team like you said.

Remove the template part above aliases.

1 Like

@tony thank you so much, it’s really worked.

ODFE Create Template page provides some snippets/examples and I’ve been following it. It might be outdated though, i don’t know for sure.