Category: Data, shell

by There are scenarios where we would like to share Amazon CloudWatch metrics with another AWS account and then retrieve the data programmatically.

It will ask for: We will use the Boto3 python library to retrieve the metrics.

Next, we will retrieve the list of EC2 instances in Account A, iterate over this list and get the metrics for each EC2 instance.

This is how we can share the metrics data across two AWS accounts and retrieve it.

Related Articles