How to Setup a Multi-Account CloudWatch Cross Account Observability Using Terraform and CloudFormation Template for Your AWS Organization
Disclaimer:Â All the views and opinions expressed in the blog belong solely to the author and not necessarily to the author’s employer or any other group or individual. This is not a promotion of any service, feature, or platform.Â
In my previous article on CloudWatch(CW) cross-account observability for AWS Organization, I provided a step-by-step guide on how to set up multi-account visibility and observability employing a newly released feature called CloudWatch cross-account observability using AWS Console. In this article, I will provide a step-by-step guide on how you can automate the CloudWatch cross-account observability for your AWS Organization using Terraform and a CloudFormation template.Â
Please refer to my earlier article on this topic for a better understanding of the concepts such as Monitoring Accounts and Source Accounts.
provider “aws” {
region = “us-east-1”
assume_role {
role_arn = “arn:aws:iam::MONITORING-ACCOUNT-NUMBER:role/YOUR-IAM-ROLE-NAME”
}
}
terraform {
required_providers {
aws = {
source = “hashicorp/aws”
version = “4.53.0”
}
}
}