Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
Now we understand how to integrate AWS Compute Optimizer and AWS Trusted Advisor checks to review the question COST 6. In this section, we will learn how to add trusted advisor check to provide data for COST 7.
You can navigate to the Well-Architected Tool and select the workload created previously to retrieve the WorkloadId. WorkloadID can be found in the Properties Tab as part of the ARN.
As an example, you can see that the WorkloadID for the workload called wademo is 46ff48ca1be93355e799201469dee0fd.
With the workloadID, we can now retrieve the QuestionID using the ListAnswers API. Replace Workload_ID with your workload id.
aws wellarchitected list-answers --workload-id {Workload_ID} --lens-alias "wellarchitected" --pillar-id "costOptimization" --query 'AnswerSummaries[?starts_with(QuestionTitle, `How do you use pricing models to reduce cost`) == `true`].QuestionId'
{
"tableName": "wa-mapping",
"mappings": [
{
"PillarNumber": "COST-7",
"PillarId": "costOptimization",
"QuestionTitle": "How do you use pricing models to reduce cost?",
"QuestionId": "pricing-model",
"ChoiceTitle": "Perform pricing model analysis at the master account level",
"ChoiceId": "cost_pricing_model_master_analysis",
"TACheckId": "cX3c2R1chu"
}
]
}
Now we are going to update AWS DynamoDB table with the updated json file through API Gateway provision in the the previous step.
curl --header "Content-Type: application/json" -d @mappings/wa-mapping-new-question.json -v POST {APIGWUrl}
Confirm that UnprocessedItems appear to be empty, which means you successfully put items into AWS DynamoDB.
In AWS DynamoDB console, click wa-mapping you just deployed and click Explore table items.
There are 2 Question IDs of Well-Architected questions and 2 AWS Trusted Advisor checks.
Refer to the previous section to create new Well-Architected Workload With Tags
I created workload called demo3 and when i clicked on Continue reviewing, choose Cost Optimization pillar. I can see that both COST 6. How do you meet cost targets when you select resource type, size and number? and COST 7. How do you use pricing models to reduce cost? have been updated with the checks from AWS Compute Optimizer and AWS Trusted Advisor
With the mapping table updated, we can create a new review click Continue reviewing and select AWS Well-Architected Framework Lens.
Throughout this lab, you have learned how to include AWS Compute Optimizer and AWS Trusted Advisor to prepare data before the review. This can be expanded further to prepare data for more questions and from more data sources
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool