title: How can I let metricbeat use iam policy to access other AWS account?
body: <p>I am using metricbeat to monitor metrics from a few AWS accounts. I have read through the doc: <a href="https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-aws.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-aws.html</a></p>
  <p>it says to configure the credential as environment variables or in aws credential file. But I'd like to use cross account IAM policy to access different AWS account. That means metricbeat needs to assume a role when it tries to query metrics. How can I achieve this in metrcibeat? I can't find related doc in their document.</p>