Not able to create delete policy for index

I am trying to create a policy from AWS ES kibana dev tool and got this message

{"Message":"Your request: '/_ilm/policy/my_policy' is not allowed."}

PUT _ilm/policy/my_policy
{
    "policy": {
        "phases": {
            "delete": {
                "min_age": "10d",
                "actions": {
                    "delete": {}
                }
            }
        }
    }
}

and from state management policies i also tried to create policy but i got this exception

[illegal_argument_exception] Invalid field: [phases] found in Policy.

we are using AWS ES 7.9 version.

I don't think this feature is available there.

Did you look at Cloud by Elastic, also available if needed from AWS Marketplace, Azure Marketplace and Google Cloud Marketplace?

Cloud by elastic is one way to have access to all features, all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, Maps UI, Alerting and built-in solutions named Observability, Security, Enterprise Search and what is coming next :slight_smile: ...

The aws service is not true Elasticsearch, and does not include ILM. You will need to upgrade to Elastic Cloud as David mentioned.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.