Action [indices:admin/auto_create] is unauthorized for API key id [AJJWM4ABcxc0XhdJgk1e] of user [elastic], this action is granted by the index privileges [auto_configure,create_index,manage,all]

Hi guys,
I am using metricbeat to ship my AWS EC2 metrics to Elasticsearch. On running metricbeat I'm getting the below error as shown in screenshot:

Please guide me to resolve this issue, as I'm new to Elasticsearch.

Hi @Mehakdeep_singh , did you manage to find a solution to this? I'm experiencing a similar issue at the moment. Thanks in advance.