- Newest
- Most votes
- Most comments
The error message "Aws account is not registered for recommendation" indicates that your AWS account is not opted in for Compute Optimizer. AWS Compute Optimizer provides recommendations for optimizing your EC2 instances, but it requires you to enable the service for your account before you can use it.
To resolve this issue and start using Compute Optimizer, you need to enable the service for your AWS account. Here's how you can do that:
** Enable Compute Optimizer via AWS Management Console:**
- Log in to the AWS Management Console.
- Navigate to the Compute Optimizer service page.
- If this is the first time you're accessing Compute Optimizer, you will likely see an option to "Get started."
- Follow the on-screen instructions to enable Compute Optimizer for your AWS account.
Enable Compute Optimizer via AWS CLI: You can also use the AWS CLI to enable Compute Optimizer for your account:
aws compute-optimizer update-enrollment-status --status ACTIVE
This command will activate Compute Optimizer for your AWS account.
After you have enabled Compute Optimizer for your account, you should be able to use the get-ec2-instance-recommendations command without encountering the "OptInRequiredException" error.
Keep in mind that it might take some time for Compute Optimizer to gather enough data to provide meaningful recommendations. Once the service has sufficient data, you'll be able to retrieve recommendations for your EC2 instances.
Hi, you have to opt-in as per step02 of https://aws.amazon.com/compute-optimizer/getting-started/ to be able to run the command that you mention.
Best,
Didier
Now, when I am running the CLI command I am getting this output:
{ "instanceRecommendations": [], "errors": [] }
Is it because of the fact that Compute Optimizer takes up to 12 hours to generate the data as per the AWS documentation though the instances are older than 30 hours. I have attached the documentation screenshot. Any suggestions why it is happening?
How to find
findings
status for the instance type for which the feature is not supported. For e.g. when I am running the command for one of the instance I am getting this message:{ "instanceRecommendations": [], "errors": [ { "identifier": "arn:aws:ec2:*:xxxxxxxxxxxx:instance/i-xxxxxxxxxxxxxxxxx", "code": "UNSUPPORTED_CONFIGURATION", "message": "Unsupported instance with type r6a.2xlarge" } ] }
As of now. Compute Optimizer currently generates recommendations for C, D, H, I, M, R, T, X, and z instance types. Other instance types are not considered by Compute Optimizer.
For more info check these docs -
Relevant content
- asked a year ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
The command I provided above will help me with the Findings of the Instance (Overprovisioned, Underprovisioned and Optimized) along with the recommendations, right @Sahith Palika
Yes, you are absolutely right.