Configure Amazon OpenSearch as data source for Grafana

Hi team,

I am deploying grafana as a Deployment in EKS cluster using the helm chart - helm-charts/charts/grafana at main · grafana/helm-charts · GitHub and I want to configure Amazon OpenSearch as the data source since I want to visualize the logs pushed to OpenSearch.

This documentation - OpenSearch plugin for Grafana | Grafana Labs has details of what configurations are available. However, what would be the right way to configure configure grafana so that it has access to the OpenSearch domain within the AWS account. Should I be creating a service account in the cluster, attach an IAM role with required permissions to it and deploy grafana under this service account ?

Or is there any other way I can do it ?

Thank you.