AmazonEKSComputePolicy
Description: Policy attached to the EKS Cluster Role that grants permissions to manage the cluster's compute resources.
AmazonEKSComputePolicy
is an AWS managed policy.
Using this policy
You can attach AmazonEKSComputePolicy
to your users, groups, and roles.
Policy details
-
Type: AWS managed policy
-
Creation time: November 01, 2024, 21:46 UTC
-
Edited time: November 07, 2024, 21:21 UTC
-
ARN:
arn:aws:iam::aws:policy/AmazonEKSComputePolicy
Policy version
Policy version: v2 (default)
The policy's default version is the version that defines the permissions for the policy. When a user or role with the policy makes a request to access an AWS resource, AWS checks the default version of the policy to determine whether to allow the request.
JSON policy document
{ "Version" : "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "ec2:CreateFleet", "ec2:RunInstances" ], "Resource" : [ "arn:aws:ec2:*::image/*", "arn:aws:ec2:*:*:security-group/*", "arn:aws:ec2:*:*:subnet/*" ] }, { "Effect" : "Allow", "Action" : [ "ec2:CreateFleet", "ec2:RunInstances" ], "Resource" : "arn:aws:ec2:*:*:launch-template/*", "Condition" : { "StringEquals" : { "aws:ResourceTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateFleet", "ec2:RunInstances", "ec2:CreateLaunchTemplate" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:RequestTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" }, "StringLike" : { "aws:RequestTag/eks:kubernetes-node-class-name" : "*", "aws:RequestTag/eks:kubernetes-node-pool-name" : "*" }, "ForAllValues:StringLike" : { "aws:TagKeys" : [ "eks:eks-cluster-name", "eks:kubernetes-node-class-name", "eks:kubernetes-node-pool-name", "kubernetes.io/cluster/*" ] } } }, { "Effect" : "Allow", "Action" : "ec2:CreateTags", "Resource" : "*", "Condition" : { "StringEquals" : { "ec2:CreateAction" : [ "CreateFleet", "RunInstances", "CreateLaunchTemplate" ] } } }, { "Effect" : "Allow", "Action" : "iam:AddRoleToInstanceProfile", "Resource" : "arn:aws:iam::*:instance-profile/eks*" }, { "Effect" : "Allow", "Action" : "iam:PassRole", "Resource" : "*", "Condition" : { "StringEquals" : { "iam:PassedToService" : [ "ec2.amazonaws.com", "ec2.amazonaws.com.rproxy.goskope.com.cn" ] } } } ] }