Troubleshooting mindset — be systematic and data-driven
Adopt these core practices when responding to incidents:- Verify with data: hypotheses must be backed by logs, metrics, traces, or audit records.
- Isolate and control changes: most incidents follow a change; focus on what changed and limit blast radius.
- Document findings: record symptoms, timelines, root causes, and remediation to avoid organizational amnesia.
- Layered analysis: work through layers—Application, Platform, Infrastructure you control, and AWS service health (provider infrastructure).

- Service unavailable — why?
- Target health checks failing — why?
- Security group blocking health check port — why?
- Security group recently updated — why?
- Automated compliance rule updated configuration (root cause)

A formal troubleshooting framework (six steps)
Follow a repeatable process:- Define the problem — articulate clear symptoms and impacted scope.
- Gather data — collect logs, metrics, alarms, traces, and audit records.
- Form a hypothesis — correlate symptoms with evidence.
- Test the hypothesis — run controlled tests or make one change at a time.
- Implement a fix if validated.
- Verify and document the outcome.
When testing, change a single variable at a time. Multiple simultaneous changes make it impossible to isolate cause and effect.
Layered troubleshooting model
Think in layers: Application → Platform → Infrastructure you control → AWS Service Health. Each layer needs different tools and questions.- Application: Are logs and traces showing errors? Are dependencies timing out?
- Platform: Is the OS or container runtime healthy? Are pods scheduled and ready?
- Infrastructure: Are EC2 instances, VPC networking, and storage healthy and reachable?
- AWS service health: Are provider-side outages or scheduled maintenances impacting you?

CloudWatch — central observability hub
CloudWatch provides metrics, Logs, Logs Insights, alarms, and dashboards. Correlate metrics and logs to validate hypotheses quickly (e.g., CPU spike, then thread dump, then service error).
Tracing with AWS X-Ray
For distributed systems, tracing is essential. AWS X-Ray provides a service map, trace analysis, and segment detail. Use annotations and metadata to correlate failures across microservices and drill into timing or dependency bottlenecks.
- Inspect the service map to find red or slow nodes.
- Select traces during the incident window and analyze segment durations.
- Add annotations for correlation keys (request id, user id).
Audit trail: CloudTrail
CloudTrail records AWS API activity and is the primary source to answer who changed what, when, from which IP, and with which credentials. Use it to correlate configuration changes, deployment actions, or unauthorized activity with incidents.CloudTrail records AWS API activity. It will not capture internal application-level actions (e.g., Kubernetes events inside a pod) — use CloudWatch Logs, container logging, or Kubernetes audit logs for those.

AWS Health — provider-side visibility
Use the Personal Health Dashboard for account-specific advisories (scheduled maintenance, operational issues) and the Service Health Dashboard (status.aws.amazon.com) for global service posture. Both can integrate with EventBridge for automated notifications and remediation.

Systems Manager OpsCenter for operational records
OpsCenter aggregates OpsItems from CloudWatch, CloudTrail, AWS Health, Config, and EventBridge. It provides structured incident records, allows runbook association, and links related resources to streamline consistent recording and handoffs.
Troubleshooting failed deployments
Each AWS deployment service (CodePipeline, CodeBuild, CodeDeploy, CloudFormation) publishes detailed logs and error reports—most are available in CloudWatch Logs. Managed platforms (ECS, EKS, Elastic Beanstalk) also publish events and logs that point to deployment failures (container images, startup scripts, health checks, or IAM role problems).
- Inspect CloudWatch Logs for build and deployment logs.
- Check targeted instances or containers for startup errors.
- Verify IAM roles and permissions used in the pipeline.
- Confirm artifact registry access (ECR) and image tag correctness.
Auto Scaling troubleshooting
Scaling incidents (failed launches, unhealthy instances, unexpected policy triggers) surface in CloudWatch (scaling activities, alarms) and CloudTrail (why an action executed). Use EC2 console events, launch configuration details, and instance status checks to diagnose failed launches.
Containers and Kubernetes
Control-plane events for ECS and EKS often flow to CloudWatch. For deeper Kubernetes troubleshooting, query the cluster directly with kubectl:
Performance and latency — pick tools by layer
- Application: X-Ray traces, application metrics, and thread/profiler dumps to find hotspots and slow downstream calls.
- Database: RDS Performance Insights or database-specific monitoring to identify slow queries, locks, or contention.
- Network: VPC Flow Logs, Reachability Analyzer, and packet captures (where available) to locate dropped packets or blocked connections.
- AWS service layer: Personal Health Dashboard and Service Health Dashboard for provider-side degradations.
Network troubleshooting
Most connectivity issues are security-related: security groups, Network ACLs, or route table problems. Use VPC Flow Logs and Reachability Analyzer to pinpoint where traffic is being dropped or blocked. Confirm route tables, NAT gateways, and Internet Gateway configuration for cross-AZ or internet-bound traffic.
IAM and permissions
Permission errors are a frequent root cause. Use CloudTrail to search denied API calls, the IAM Policy Simulator to validate a principal’s effective permissions, and Access Analyzer to find overly-broad or risky policies. Error messages often include the missing permission or the wrong region/ARN—parse them carefully.
Anti-patterns and best practices
Avoid these common anti-patterns:- Restarting services or instances without investigation.
- Making multiple simultaneous changes (prevents isolation).
- Ignoring logs and audit trails (CloudWatch, CloudTrail).
- Skipping AWS Health checks when provider issues are possible.
- Lacking baseline metrics — you may mistake normal behavior for anomalies.
- Be data-driven and use a layered analysis.
- Document as you go and update runbooks after validation.
- Change only one variable at a time and use the Five Whys to expose systemic causes.

Post-incident review and learning
After remediation, run a blameless post-incident review focused on system improvements:- Record a timeline and root cause analysis.
- Update runbooks and playbooks with validated remediation steps.
- Identify monitoring and alerting gaps and add targeted observability.
- Implement preventive changes so incidents are less likely or have reduced impact.

Links and references
- AWS CloudWatch: https://docs.aws.amazon.com/cloudwatch/
- AWS X-Ray: https://docs.aws.amazon.com/xray/
- AWS CloudTrail: https://docs.aws.amazon.com/cloudtrail/
- AWS Personal Health Dashboard: https://docs.aws.amazon.com/health/
- Systems Manager OpsCenter: https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-opscenter.html
- Kubernetes documentation: https://kubernetes.io/docs/home/
- VPC Flow Logs: https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html
- Reachability Analyzer: https://docs.aws.amazon.com/vpc/latest/reachability/what-is-reachability-analyzer.html
- IAM Policy Simulator: https://policysim.aws.amazon.com/
- Access Analyzer: https://docs.aws.amazon.com/iam/latest/UserGuide/access-analyzer.html