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" : { }
}
}