By using AWS re:Post, you agree to the Terms of Use

what permision on lambda Role are needed for "compute optimizer" to work?


basically as in the tilte. What permissions are needed on a lambda Role for "Compute optimizer" to work with it?

1 Answer

The following policy statement grants access to opt in to Compute Optimizer. It grants access to create a service-linked role for Compute Optimizer. This role is required to opt in. For more information, see Using Service-Linked Roles for AWS Compute Optimizer. It also grants access to update the enrollment status to the Compute Optimizer service.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "iam:CreateServiceLinkedRole", "Resource": "arn:aws:iam:::role/aws-service-role/", "Condition": {"StringLike": {"iam:AWSServiceName": ""}} }, { "Effect": "Allow", "Action": "iam:PutRolePolicy", "Resource": "arn:aws:iam:::role/aws-service-role/" }, { "Effect": "Allow", "Action": "compute-optimizer:UpdateEnrollmentStatus", "Resource": "" } ] }

For other details & policies, refer to the link below: -- [1]

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions