AWS managed policies for AWS Compute Optimizer
To add permissions to users, groups, and roles, consider using AWS 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 AWS managed policies. These policies cover common use cases and are available in your AWS account. For more information about AWS managed policies, see AWS managed policies in the IAM User Guide.
AWS services maintain and update AWS managed policies. You can't change the permissions in AWS managed policies. Services occasionally add additional permissions to an AWS 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 AWS managed policy when a new feature is launched or when new operations become available. Services don't remove permissions from an AWS 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 AWS managed policy provides read-only access to all and resources. When a service launches a new feature, AWS adds read-only permissions for new operations and resources. For a list and descriptions of job function policies, see AWS managed policies for job functions in the IAM User Guide.
Topics
AWS 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 AWS 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 AWS 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. -
autoscaling
– Grants access to Auto Scaling groups and the instances in Auto Scaling groups for validation purposes. -
Ec2
– Grants access to Amazon EC2 instances and volumes.
{ "Version": "2012-10-17", "Statement": [ { "Sid": "ComputeOptimizerFullAccess", "Effect": "Allow", "Action": [ "compute-optimizer:*" ], "Resource": "*" }, { "Sid": "AwsOrgsAccess", "Effect": "Allow", "Action": [ "organizations:DescribeOrganization", "organizations:ListAccounts", "organizations:ListAWSServiceAccessForOrganization", "organizations:ListDelegatedAdministrators" ], "Resource": [ "*" ] }, { "Sid": "CloudWatchAccess", "Effect": "Allow", "Action": [ "cloudwatch:GetMetricData" ], "Resource": "*" }, { "Sid": "AutoScalingAccess", "Effect": "Allow", "Action": [ "autoscaling:DescribeAutoScalingInstances", "autoscaling:DescribeAutoScalingGroups" ], "Resource": "*" }, { "Sid": "Ec2Access", "Effect": "Allow", "Action": [ "ec2:DescribeInstances", "ec2:DescribeVolumes" ], "Resource": "*" } ] }
AWS 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 AWS 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 AWS 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:GetRecommendationPreferences", "compute-optimizer:GetEffectiveRecommendationPreferences", "compute-optimizer:GetECSServiceRecommendations", "compute-optimizer:GetECSServiceRecommendationProjectedMetrics", "compute-optimizer:GetLicenseRecommendations", "compute-optimizer:GetRDSDatabaseRecommendations", "compute-optimizer:GetRDSDatabaseRecommendationProjectedMetrics", "compute-optimizer:GetIdleRecommendations", "ec2:DescribeInstances", "ec2:DescribeVolumes", "ecs:ListServices", "ecs:ListClusters", "autoscaling:DescribeAutoScalingGroups", "autoscaling:DescribeAutoScalingInstances", "lambda:ListFunctions", "lambda:ListProvisionedConcurrencyConfigs", "cloudwatch:GetMetricData", "organizations:ListAccounts", "organizations:DescribeOrganization", "organizations:DescribeAccount", "rds:DescribeDBInstances", "rds:DescribeDBClusters" ], "Resource": "*" } ] }
Note
The following policy statement only grants read-only access to Compute Optimizer for a management account of an organization to view org-level recommendations. If you're the delegated administrator and you want to view org-level recommendations, see Policies to grant access to Compute Optimizer for a management account of an organization.
Compute Optimizer updates to AWS managed policies
View details about updates to AWS 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 |
Added the |
November 20, 2024 |
Edit to the |
Added the |
June 20, 2024 |
Edit to the |
Added the |
July 26, 2023 |
Edit to the |
Added the |
December 22, 2022 |
Edit to the ComputeOptimizerServiceRolePolicy managed
policy |
Added the ec2:DescribeInstances ,
ec2:DescribeVolumes , and
organizations:ListDelegatedAdministrators actions to
the ComputeOptimizerServiceRolePolicy managed
policy. |
July 25, 2022 |
Edit to the |
Added the |
November 29, 2021 |
Edit to the |
Added the
|
November 29, 2021 |
Edit to the |
Added the |
August 26, 2021 |
Compute Optimizer started tracking changes |
Compute Optimizer started tracking changes for its AWS managed policies. |
May 18, 2021 |