Required permissions for Spot placement score - Amazon Elastic Compute Cloud

Required permissions for Spot placement score

By default, IAM identities (users, roles, or groups) don't have permission to use Spot placement score. To allow IAM identities to use Spot placement score, you must create an IAM policy that grants permission to use the ec2:GetSpotPlacementScores EC2 API action. You then attach the policy to the IAM identities that require this permission.

The following is an example IAM policy that grants permission to use the ec2:GetSpotPlacementScores EC2 API action.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "ec2:GetSpotPlacementScores", "Resource": "*" } ] }

For information about editing an IAM policy, see Editing IAM policies in the IAM User Guide.

To provide access, add permissions to your users, groups, or roles: