Querying remote account CloudWatch logs using athena

0

Hey, i want to us athena to query cloud watch logs from other account(not my account). When i set up athena data source and choose CloudWatch Logs, i don't see any option to control the account(and region) - it automatically connects to my cloudwatch in the current region.

I want to know if there is an option to control the properties of the cloudwatch logs(from which account and region) and by that to be able to query logs from other account in my account.

已提問 5 個月前檢視次數 158 次
1 個回答
0

Hi,

I would suggest you to read https://dev.to/markymarkus/using-athena-to-query-multi-account-cloudwatch-logs-54j and use the Cloudformation templates that they deliver to obtain a working solution.

If you don't reuse their CFN templates, reading them will at least give you all details about the setup that you need to make to get this cross-account access to work.

Best,

Didier

profile pictureAWS
專家
已回答 5 個月前
  • Hey, i already found this article, it suggest an interesting approach, but i want to know if there is a way to do it without "third-party" services.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南