Getting started with AWS Compute Optimizer - AWS Compute Optimizer

Getting started with AWS Compute Optimizer

When you access the AWS Compute Optimizer console for the first time, you are asked to opt in, using the account that you’re signed in with, before you can use the service. You can also opt in, and opt out using the Compute Optimizer API, AWS Command Line Interface (AWS CLI), or SDKs. For more information, see UpdateEnrollmentStatus in the AWS Compute Optimizer API Reference.

By opting in, you are authorizing Compute Optimizer to analyze the specifications and utilization metrics of your AWS resources, such as EC2 instances and Auto Scaling groups. For more information, see Metrics analyzed by AWS Compute Optimizer. To access the data, Compute Optimizer automatically creates a Service-Linked Role in your account. For more information, see Using Service-Linked Roles for AWS Compute Optimizer.

Accounts supported by Compute Optimizer

The following AWS account types can opt in to Compute Optimizer:

  • Standalone AWS account - A standalone AWS account that does not have AWS Organizations enabled. If you opt in to Compute Optimizer while signed in to a standalone account, the service analyzes resources that are in the account, and generates optimization recommendations for those resources.

  • Member account of an organization - An AWS account that is a member of an organization. If you opt in to Compute Optimizer while signed in to a member account of an organization, the service analyzes resources that are in this member account, and generates optimization recommendations for those resources.

  • Management account of an organization - An AWS account that administers an organization. If you opt in to Compute Optimizer while signed in to a management account of an organization, the service gives you the option to opt in only the management account, or all accounts in the organization.

    When you opt in all accounts in the organization, Compute Optimizer analyzes resources that are in all member accounts of the organization. You can then view recommendations for resources in each member account.

    Important

    To successfully opt in all accounts in an organization, the organization must have all features enabled. For more information, see Enabling All Features in Your Organization in the AWS Organizations User Guide.

Opting in your account

Use the following procedure to opt in your account.

To opt in your account

  1. Open the Compute Optimizer console at https://console.aws.amazon.com/compute-optimizer/.

    If this is your first time using the Compute Optimizer console, the Compute Optimizer landing page is displayed.

  2. Choose Get started.

  3. On the Account setup page, review the Getting started and Setting up your account sections.

  4. The following options are displayed if the account that you're signed in to is a management account of an organization. Choose one before continuing to the next step.

    • Only this account - Choose this option to opt in only the account that you’re currently signed in to. If you choose this option, Compute Optimizer analyzes resources that are in the individual account, and generates optimization recommendations for those resources.

    • All accounts within this organization - Choose this option to opt in the account you’re currently signed in to, and all of its member accounts. If you choose this option, Compute Optimizer analyzes resources that are in all accounts in the organization, and generates optimization recommendations for those resources.

  5. Choose Opt in. By opting in, you indicate that you agree to and understand the requirements to opt in to Compute Optimizer.

    After you opt in, you are redirected to the dashboard in the Compute Optimizer console. The service begins analyzing the configuration and utilization metrics of your AWS resources. However, the findings and optimization recommendations might not be generated right away. For more information, see Viewing the AWS Compute Optimizer dashboard.

    Note

    To improve the recommendation quality of Compute Optimizer, AWS may use your CloudWatch metrics and configuration data, such as memory utilization, to improve our recommendation models and algorithms. If you want to opt out of this experience and request that AWS does not use your CloudWatch metrics or configuration data to improve recommendation quality of Compute Optimizer, contact AWS Support.

Opting out your account

Use the following procedure to opt out your account from Compute Optimizer using the command line.

To opt out an account

  1. Open a Terminal or Command Prompt window.

    If you haven't already, install the AWS CLI and configure it to work with Compute Optimizer. For more information, see Installing the AWS CLI and Quickly Configuring the AWS CLI in the AWS Command Line Interface User Guide.

  2. Enter the following command.

    aws compute-optimizer update-enrollment-status --status Inactive
    Note

    You cannot specify the --include-member-accounts parameter when opting out with the above command; you will receive an error message.

    Your account is opted out of Compute Optimizer after running the previous command. If you access the Compute Optimizer console, you should see the option to opt in again.