0
0
AWScloud~30 mins

AWS Trusted Advisor recommendations - Mini Project: Build & Apply

Choose your learning style9 modes available
AWS Trusted Advisor Recommendations
📖 Scenario: You are managing an AWS account and want to check the health and best practices of your AWS resources. AWS Trusted Advisor helps by giving recommendations to optimize your AWS environment.In this project, you will create a simple script to retrieve AWS Trusted Advisor recommendations using AWS SDK.
🎯 Goal: Build a script that connects to AWS Trusted Advisor service, retrieves the list of checks, and filters the recommendations for a specific category.
📋 What You'll Learn
Create a client to connect to AWS Support service
Retrieve the list of Trusted Advisor checks
Filter checks by category 'cost_optimizing'
Print the check names and their IDs
💡 Why This Matters
🌍 Real World
AWS Trusted Advisor helps cloud administrators optimize costs, improve security, and enhance performance by providing actionable recommendations.
💼 Career
Knowing how to programmatically access Trusted Advisor data is useful for cloud engineers and architects to automate monitoring and reporting.
Progress0 / 4 steps
1
Create AWS Support client
Create a variable called support_client that uses boto3.client to connect to the AWS Support service with the region set to 'us-east-1'.
AWS
Need a hint?

Use boto3.client('support', region_name='us-east-1') to create the client.

2
Retrieve Trusted Advisor checks
Use the support_client to call describe_trusted_advisor_checks with language='en' and store the result in a variable called checks_response.
AWS
Need a hint?

Call describe_trusted_advisor_checks(language='en') on support_client.

3
Filter checks by category
Create a list called cost_checks that contains only the checks from checks_response['checks'] where the 'category' is exactly 'cost_optimizing'.
AWS
Need a hint?

Use a list comprehension to filter checks where check['category'] == 'cost_optimizing'.

4
Print check names and IDs
Use a for loop with variables check to iterate over cost_checks. Inside the loop, print the check['name'] and check['id'] separated by a dash.
AWS
Need a hint?

Use a for loop and print the name and id of each check.