Overview
You are observing that there's a sharp drop in the savings value in CloudFix, which is primarily occurring because AWS Compute Optimizer has been disabled (opted out) on one or more of the AWS accounts in your environment.
EC2 rightsizing recommendations are produced by the EC2 Optimize Instances finder, and that finder depends on AWS Compute Optimizer at the account level: before it looks at any individual instance, it checks whether Compute Optimizer is enabled for the account. If it is not, CloudFix skips every instance in that account for this finder's recommendations. This is an account-wide gate, not a per-resource check — so opting out on even one account can make that account's rightsizing savings disappear from your totals entirely.
Solution
- This issue can occur when there are certain accounts in your AWS environment where you have opted out of AWS Compute Optimizer.
- To fix this, it is recommended to enable AWS Compute Optimizer on all your accounts. See Enable Compute Optimizer to unlock savings for the CloudFix-specific steps — CloudFix can also detect accounts where Compute Optimizer is disabled and generate a recommendation to enable it automatically.
<supportagent>
Below are the steps that can help troubleshoot this type of issue:
- From the
pcfx_cloudfix_proddatabase, get the value oftenant_idcolumn from thetenantstable for this tenant. - Run the below query in Athena to get all the AWS accounts information for this Tenant:
SELECT distinct(aws_account) FROM cloudfix_events
WHERE tenant_id='<tenant_id from first step>'
AND event_type='cost-opportunity' ;
- Run the below query in Athena to get information related to the resources for this Finder:
SELECT distinct(resource_id) FROM cloudfix_events
WHERE tenant_id='<tenant_id from first step>'
AND event_type='recommendation'
AND finder_fixer_id='Ec2OptimizeInstances' ;
- Run the below query to find status of previous recommendations. They would be invalidated by rejection:
SELECT distinct(resource_id) FROM cloudfix_events
WHERE tenant_id='<tenant_id from first step>'
AND event_type='recommendation'
AND finder_fixer_id='Ec2OptimizeInstances'
AND resource_id NOT IN
(SELECT distinct(resource_id) FROM cloudfix_events
WHERE tenant_id='<tenant_id from first step>'
AND event_type='opportunity-rejected') ;
For this symptom specifically, also check the affected account(s)' Compute Optimizer enrollment status directly (AWS Console → Compute Optimizer, or compute-optimizer:GetEnrollmentStatus) — Ec2OptimizeInstances fails every resource in an account with a single account-level validation (ComputeOptimizerOptedIn) whenever that account is not opted in, which is the most common cause of a sudden across-the-board drop in EC2 rightsizing savings.
</supportagent>
Priyanka Bhotika
Comments