title: how to access cloudwatch logs cross account continously
body: <p><strong>Current Situation</strong>
  I am in process to create monitoring system for my AWS account with prometheus and grafana. it is able to display results from same AWS account.</p>
  
  <p><strong>Problem Statement</strong>
  I want to pull cloudwatch metrics from other AWS account to centralized logging system.</p>
  
  <p><strong>Things i tried</strong>
  As per my understanding we can use IAM cross account feature  to access data present in other AWS account. i found some  AWS documentation  online but it is mainly for non programmetic user.</p>
  
  <p>[<a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html]" rel="nofollow noreferrer">https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html]</a> 
  and 
   [<a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_aws-accounts.html]" rel="nofollow noreferrer">https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_aws-accounts.html]</a> </p>
  
  <p>this require user to login to AWS web console and switch role manually. again tokan available is only for one hour by default</p>
  
  <p>does AWS provide some way to fetch data continously for programmetic user.</p>