Optimizing Your AWS Environment - Best Practice Checks with Trusted Advisor
Learn how to use AWS Trusted Advisor for automated environment diagnostics. This article covers the check items and usage across five categories: cost optimization, security, fault tolerance, performance, and service limits.
Trusted Advisor Overview and Five Diagnostic Categories
AWS Trusted Advisor is a service that automatically diagnoses your AWS environment against best practices. It provides recommendations based on operational data from thousands of AWS accounts, identifying opportunities for cost reduction, security hardening, and availability improvement. Diagnostics are organized into five categories. Cost optimization detects unused and underutilized resources (EC2, RDS, EBS, Elastic IP, Redshift) and presents specific savings amounts. Security checks for S3 bucket public access settings, overly permissive security group ports, root account MFA not enabled, and IAM access key rotation. Fault tolerance checks for missing EBS snapshots, RDS Multi-AZ not configured, and Auto Scaling group AZ distribution. Performance detects high-utilization EC2 instances and CloudFront optimization opportunities. Service limits monitors quota usage for each service and warns when items reach 80% of their limit.
Check Scope Differences by Support Plan
The scope of Trusted Advisor checks varies by support plan. Basic/Developer plans provide only 6 core security checks and service limit checks. The core security checks cover S3 bucket permissions, security group unrestricted access (0.0.0.0/0), IAM usage, root account MFA, EBS public snapshots, and RDS public snapshots. Business plan ($100+/month) or Enterprise plan ($15,000+/month) unlocks access to all 300+ check items and enables programmatic access via the AWS Support API. Cost optimization checks alone often uncover savings that exceed the monthly support plan cost, making the upgrade to Business plan a high-ROI investment.
Cost Optimization Checks in Practice
Trusted Advisor's cost optimization checks present recommendations along with specific savings amounts. Here are the main check items and typical findings. Low-utilization EC2 instances detects instances with CPU usage below 10% over the past 14 days and recommends downsizing or stopping. Idle RDS instances detects instances with no connections over the past 7 days. Unassociated Elastic IP addresses detects EIPs not associated with an EC2 instance (unused EIPs cost approximately $3.6/month each). Unused EBS volumes detects volumes not attached to any instance. Savings Plans and Reserved Instance recommendations suggest optimal purchase plans based on past usage patterns. These check results can be exported as CSV and used as input data for regular cost reviews. For designing cloud operations best practices, related books on Amazon are a helpful reference.
Automation and Organizations Integration
Trusted Advisor integrates with EventBridge to detect check result changes as events. For example, when a new security warning is detected, you can send notifications via SNS or execute automated remediation actions with Lambda. ```bash # Retrieve Trusted Advisor check results (Business/Enterprise plan) aws support describe-trusted-advisor-checks \ --language en \ --region us-east-1 \ --query 'checks[?category==`cost_optimizing`].{id:id,name:name}' # Retrieve results for a specific check aws support describe-trusted-advisor-check-result \ --check-id Qch7DwouX1 \ --language en \ --region us-east-1 ``` With AWS Organizations integration, the organizational view aggregates Trusted Advisor results across all accounts. From the management account dashboard, you can see which accounts have which recommendations, enabling efficient organization-wide cost optimization and security improvement. Note that the Trusted Advisor API is only available in the us-east-1 region.
Summary - Guidelines for Using Trusted Advisor
AWS Trusted Advisor is a service that automatically diagnoses your AWS environment across cost, security, fault tolerance, performance, and service limits. Even the Basic plan provides 6 core security checks for free, while Business plan and above unlocks all 300+ check items and API access. The main use cases are specific cost savings estimates from cost optimization checks, proactive service limit warnings, and automation through EventBridge integration. We recommend regularly reviewing Trusted Advisor results as input data for monthly cost reviews and quarterly security audits.