Cloud Monitoring
Cloud Monitoring
Section
Amazon CloudWatch Metrics
On Premise
EC2 Instance Server
Amazon EventBridge (formerly CloudWatch
Events)
• Schedule: Cron jobs (scheduled scripts)
IAM Root User Sign in Event SNS Topic with Email Notification
Compute
Lambda AWS Batch ECS Task
EC2 Instance CodeBuild
Integration
(ex: Start Instance) (ex: failed build)
Maintenance Orchestration
S3 Event Trusted Advisor
(ex: upload object) (ex: new Finding) Amazon
EventBridge
Step CodePipeline CodeBuild
Functions
CloudTrail Schedule or Cron
(any API call) (ex: every 4 hours)
SNS
Emails SMS & HTTP(S)
Mobile Notifications Endpoints
AWS CloudTrail
• Provides governance, compliance and audit for your AWS Account
• Actions taken by a user, role, or an AWS service are recorded as events in CloudTrail.
• CloudTrail is enabled by default!
• Get an history of events / API calls made within your AWS Account by:
• Console
• SDK
• CLI
• AWS Services
• Can put logs from CloudTrail into CloudWatch Logs or S3
• A trail can be applied to All Regions (default) or a single Region.
• If a resource is deleted in AWS, investigate CloudTrail first!
CloudTrail Events
• Management events: provide information about management operations
that are performed on resources in your AWS account.
• Data events: provide information about the resource operations
performed on or in a resource.
• CloudTrail Insights: events capture unusual API call rate or error rate
activity in your AWS account.
CloudTrail Diagram
SDK
CloudWatch Logs
CloudTrail Console
CLI
Console
Inspect & Audit S3 Bucket