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.

asked 5 months ago137 views
1 Answer
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
EXPERT
answered 5 months ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions