What Can You Monitor in CodePipeline?
A single AWS account can host multiple pipelines. Each pipeline consists of stages (Source, Build, Test, Deploy), and each stage contains one or more actions. You can set up monitoring at three levels:- Pipeline
- Stage
- Action

Amazon EventBridge
Amazon EventBridge is the primary service for reacting to CodePipeline events. It follows a publisher/subscriber model: AWS services publish events, and you define rules to trigger targets such as Lambda, SNS, or SQS.By default, AWS publishes pipeline events to EventBridge at no cost. You only incur charges for custom, cross-account, or third-party events ($1 per 1 million events).
Supported Event Levels


AWS CloudTrail, Amazon S3 & Amazon SNS
While EventBridge handles high-level pipeline events, AWS CloudTrail records every API call and user action across AWS services. Since CodePipeline orchestrates other services (for example, CodeCommit or CodeBuild), CloudTrail captures those underlying API calls.- Amazon S3: Store CloudTrail logs for durable, scalable retention.
- Amazon SNS: Configure notifications for critical events, such as API call failures.

Consider the volume of CloudTrail logs when designing S3 lifecycle policies and SNS subscription limits to avoid unexpected costs.
Summary of Monitoring Options

References
- AWS CodePipeline Documentation
- Amazon EventBridge User Guide
- AWS CloudTrail Documentation
- Amazon S3 Documentation
- Amazon SNS Documentation