AWS managed elasticsearch doesn't allow `_render/template` request?

Viewed 139

When trying to render a query template in AWS managed Easticsearch cluster I am getting an not allowed error. however the search by template works fine.

GET /_render/template
{
  "source": "{ \"query\": { \"terms\": {{#toJson}}statuses{{/toJson}} }}",
  "params": {
    "statuses" : {
        "status": [ "pending", "published" ]
    }
  }
}

return below error:

{
  "Message": "Your request: '/_render/template' is not allowed."
}

is there a configuration or permission that I need to enable to allow render requests?

1 Answers
Related