Skill 1.3.2

Remediate misconfiguration of resources (for example, by troubleshooting CloudWatch Agent configurations, troubleshooting missing logs)

Key Concepts

CloudWatch agent: confirm the agent is running (amazon-cloudwatch-agent-ctl -a status), the config file lists the right paths, the instance role has CloudWatchAgentServerPolicy, and the instance can reach the CloudWatch Logs endpoint (NAT gateway or interface VPC endpoint). The agent's own log shows permission and parsing errors.

Missing CloudTrail logs: trail logging stopped, S3 bucket policy missing the CloudTrail principal or aws:SourceArn, KMS key policy not allowing CloudTrail, or an SCP blocking delivery. Missing alerts: metric filter pattern not matching, alarm statistic or period wrong, EventBridge pattern mismatch, or SNS topic and KMS key policies blocking the publisher.