Amazon managed policies for Amazon Compute Optimizer - Amazon Compute Optimizer
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon managed policies for Amazon Compute Optimizer

To add permissions to users, groups, and roles, consider using Amazon managed policies rather than to writing your own policies. It takes time and expertise to create IAM customer managed policies that provide your team with only the permissions they need. To get started quickly, you can use Amazon managed policies. These policies cover common use cases and are available in your Amazon Web Services account. For more information about Amazon managed policies, see Amazon managed policies in the IAM User Guide.

Amazon Web Services maintain and update Amazon managed policies. You can't change the permissions in Amazon managed policies. Services occasionally add additional permissions to an Amazon managed policy to support new features. This type of update affects all identities (users, groups, and roles) where the policy is attached. Services are most likely to update an Amazon managed policy when a new feature is launched or when new operations become available. Services don't remove permissions from an Amazon managed policy, so policy updates won't break your existing permissions.

Additionally, Amazon Web Services supports managed policies for job functions that span multiple services. For example, the ReadOnlyAccess Amazon managed policy provides read-only access to all and resources. When a service launches a new feature, Amazon adds read-only permissions for new operations and resources. For a list and descriptions of job function policies, see Amazon managed policies for job functions in the IAM User Guide.

Amazon managed policy: ComputeOptimizerServiceRolePolicy

The ComputeOptimizerServiceRolePolicy managed policy is attached to a service-linked role that allows Compute Optimizer to perform actions on your behalf. For more information, see Using service-linked roles for Amazon Compute Optimizer.

Note

You can't attach ComputeOptimizerServiceRolePolicy to your IAM entities.

Permissions details

This policy includes the following permissions.

  • compute-optimizer – Grants full administrative permissions to all resources in Compute Optimizer.

  • organizations – Allows the management account of an Amazon organization to opt in member accounts of the organization to Compute Optimizer.

  • cloudwatch – Grants access to CloudWatch resource metrics for the purpose of analyzing them and generating Compute Optimizer resource recommendations.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "ComputeOptimizerFullAccess", "Effect": "Allow", "Action": [ "compute-optimizer:*" ], "Resource": "*" }, { "Sid": "AwsOrgsAccess", "Effect": "Allow", "Action": [ "organizations:DescribeOrganization", "organizations:ListAccounts", "organizations:ListAWSServiceAccessForOrganization" ], "Resource": [ "*" ] }, { "Sid": "CloudWatchAccess", "Effect": "Allow", "Action": [ "cloudwatch:GetMetricData" ], "Resource": "*" } ] }

Amazon managed policy: ComputeOptimizerReadOnlyAccess

You can attach the ComputeOptimizerReadOnlyAccess policy to your IAM identities.

This policy grants read-only permissions that allow IAM users to view Compute Optimizer resource recommendations.

Permissions details

This policy includes the following:

  • compute-optimizer – Grants read-only access to Compute Optimizer resource recommendations.

  • ec2 – Grants read-only access to Amazon EC2 instances and Amazon EBS volumes.

  • autoscaling – Grants read-only access to Auto Scaling groups.

  • lambda – Grants read-only access to Amazon Lambda functions and their configurations.

  • cloudwatch – Grants read-only access to Amazon CloudWatch metric data for resource types that are supported by Compute Optimizer.

  • organizations – Grants read-only access to member accounts of an Amazon organization.

  • ecs – Grants access to Amazon ECS services on Fargate.

  • rds – Grants read-only access to Amazon RDS instances and clusters.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "compute-optimizer:DescribeRecommendationExportJobs", "compute-optimizer:GetEnrollmentStatus", "compute-optimizer:GetEnrollmentStatusesForOrganization", "compute-optimizer:GetRecommendationSummaries", "compute-optimizer:GetEC2InstanceRecommendations", "compute-optimizer:GetEC2RecommendationProjectedMetrics", "compute-optimizer:GetAutoScalingGroupRecommendations", "compute-optimizer:GetEBSVolumeRecommendations", "compute-optimizer:GetLambdaFunctionRecommendations", "compute-optimizer:GetECSServiceRecommendations", "compute-optimizer:GetECSServiceRecommendationProjectedMetrics", "compute-optimizer:GetLicenseRecommendations", "ec2:DescribeInstances", "ec2:DescribeVolumes", "ecs:ListServices", "ecs:ListClusters", "autoscaling:DescribeAutoScalingGroups", "lambda:ListFunctions", "lambda:ListProvisionedConcurrencyConfigs", "cloudwatch:GetMetricData", "organizations:ListAccounts", "organizations:DescribeOrganization", "organizations:DescribeAccount" ], "Resource": "*" } ] }

Compute Optimizer updates to Amazon managed policies

View details about updates to Amazon managed policies for Compute Optimizer since this service began tracking these changes. For automatic alerts about changes to this page, subscribe to the RSS feed for this guide.

Change Description Date

Edit to the ComputeOptimizerReadOnlyAccess managed policy

Added the compute-optimizer:GetLicenseRecommendations actions to the ComputeOptimizerReadOnlyAccess managed policy.

July 26, 2023

Edit to the ComputeOptimizerReadOnlyAccess managed policy

Added the compute-optimizer:GetECSServiceRecommendations, compute-optimizer:GetECSServiceRecommendationProjectedMetrics, ecs:ListServices, and ecs:ListClusters actions to the ComputeOptimizerReadOnlyAccess managed policy.

March 30, 2023

Edit to the ComputeOptimizerReadOnlyAccess managed policy

Added the GetEnrollmentStatusesForOrganization action to the ComputeOptimizerReadOnlyAccess managed policy.

August 26, 2021

Compute Optimizer started tracking changes

Compute Optimizer started tracking changes for its Amazon managed policies.

May 18, 2021