A financial services company operates a microservices-based application running on Amazon ECS with AWS Fargate across ten member accounts within an AWS Organization. The operations team needs to build a centralized dashboard in a designated monitoring account to analyze application performance, query log groups, and view distributed service traces across all member accounts. The solution must minimize operational overhead and avoid manual infrastructure provisioning or custom log-routing agents. Which strategy should a Solutions Architect implement to meet these requirements?
- AModify the ECS task definitions in each member account to include a sidecar container running the CloudWatch Agent. Configure the agent using a static JSON configuration file to stream local container logs and custom metrics directly to log groups in the central monitoring account using cross-account IAM roles assumed by the task execution role.
- Configure CloudWatch cross-account observability by creating a sink in the central monitoring account and defining links in the member accounts using AWS CloudWatch Observability Access Manager (OAM). Enable sharing for logs, metrics, and traces, and access the consolidated data from the monitoring account's CloudWatch console.Answer
- CDeploy an Amazon Kinesis Data Firehose delivery stream in each member account to collect container logs and send them to a centralized Amazon S3 bucket in the monitoring account. Use Amazon Athena to query the logs and Amazon QuickSight to visualize metrics, ensuring the S3 bucket policy is configured to allow cross-account writes from the member accounts' Firehose IAM roles.
- DAttach a Service Control Policy (SCP) at the root level of the AWS Organization that grants permission for ECS tasks to write CloudWatch logs and X-Ray traces directly to the monitoring account. Configure the ECS tasks to write to the central monitoring account's regional CloudWatch and X-Ray endpoints.
Answer
Configure CloudWatch cross-account observability by creating a sink in the central monitoring account and defining links in the member accounts using AWS CloudWatch Observability Access Manager (OAM). Enable sharing for logs, metrics, and traces, and access the consolidated data from the monitoring account's CloudWatch console.
The correct solution leverages Amazon CloudWatch cross-account observability using AWS CloudWatch Observability Access Manager (OAM). By creating a central sink in the monitoring account and linking the member accounts to it, the operations team can search logs, view consolidated metrics, and inspect traces across all accounts from the central console. This approach requires no agent maintenance or sidecar management, minimizing operational overhead.
Step-by-Step Solution
Key Concept
CloudWatch Cross-Account Observability using AWS OAM