|
| 1 | +# IAM Permissions |
| 2 | + |
| 3 | +Following IAM permissions are the minimum permissions needed for your IAM user or IAM role to create an EKS cluster. |
| 4 | + |
| 5 | +```json |
| 6 | +{ |
| 7 | + "Version": "2012-10-17", |
| 8 | + "Statement": [ |
| 9 | + { |
| 10 | + "Sid": "VisualEditor0", |
| 11 | + "Effect": "Allow", |
| 12 | + "Action": [ |
| 13 | + "autoscaling:AttachInstances", |
| 14 | + "autoscaling:CreateAutoScalingGroup", |
| 15 | + "autoscaling:CreateLaunchConfiguration", |
| 16 | + "autoscaling:CreateOrUpdateTags", |
| 17 | + "autoscaling:DeleteAutoScalingGroup", |
| 18 | + "autoscaling:DeleteLaunchConfiguration", |
| 19 | + "autoscaling:DeleteTags", |
| 20 | + "autoscaling:Describe*", |
| 21 | + "autoscaling:DetachInstances", |
| 22 | + "autoscaling:SetDesiredCapacity", |
| 23 | + "autoscaling:UpdateAutoScalingGroup", |
| 24 | + "autoscaling:SuspendProcesses", |
| 25 | + "ec2:AllocateAddress", |
| 26 | + "ec2:AssignPrivateIpAddresses", |
| 27 | + "ec2:Associate*", |
| 28 | + "ec2:AttachInternetGateway", |
| 29 | + "ec2:AttachNetworkInterface", |
| 30 | + "ec2:AuthorizeSecurityGroupEgress", |
| 31 | + "ec2:AuthorizeSecurityGroupIngress", |
| 32 | + "ec2:CreateDefaultSubnet", |
| 33 | + "ec2:CreateDhcpOptions", |
| 34 | + "ec2:CreateEgressOnlyInternetGateway", |
| 35 | + "ec2:CreateInternetGateway", |
| 36 | + "ec2:CreateNatGateway", |
| 37 | + "ec2:CreateNetworkInterface", |
| 38 | + "ec2:CreateRoute", |
| 39 | + "ec2:CreateRouteTable", |
| 40 | + "ec2:CreateSecurityGroup", |
| 41 | + "ec2:CreateSubnet", |
| 42 | + "ec2:CreateTags", |
| 43 | + "ec2:CreateVolume", |
| 44 | + "ec2:CreateVpc", |
| 45 | + "ec2:DeleteDhcpOptions", |
| 46 | + "ec2:DeleteEgressOnlyInternetGateway", |
| 47 | + "ec2:DeleteInternetGateway", |
| 48 | + "ec2:DeleteNatGateway", |
| 49 | + "ec2:DeleteNetworkInterface", |
| 50 | + "ec2:DeleteRoute", |
| 51 | + "ec2:DeleteRouteTable", |
| 52 | + "ec2:DeleteSecurityGroup", |
| 53 | + "ec2:DeleteSubnet", |
| 54 | + "ec2:DeleteTags", |
| 55 | + "ec2:DeleteVolume", |
| 56 | + "ec2:DeleteVpc", |
| 57 | + "ec2:DeleteVpnGateway", |
| 58 | + "ec2:Describe*", |
| 59 | + "ec2:DetachInternetGateway", |
| 60 | + "ec2:DetachNetworkInterface", |
| 61 | + "ec2:DetachVolume", |
| 62 | + "ec2:Disassociate*", |
| 63 | + "ec2:ModifySubnetAttribute", |
| 64 | + "ec2:ModifyVpcAttribute", |
| 65 | + "ec2:ModifyVpcEndpoint", |
| 66 | + "ec2:ReleaseAddress", |
| 67 | + "ec2:RevokeSecurityGroupEgress", |
| 68 | + "ec2:RevokeSecurityGroupIngress", |
| 69 | + "ec2:UpdateSecurityGroupRuleDescriptionsEgress", |
| 70 | + "ec2:UpdateSecurityGroupRuleDescriptionsIngress", |
| 71 | + "ec2:CreateLaunchTemplate", |
| 72 | + "ec2:CreateLaunchTemplateVersion", |
| 73 | + "ec2:DeleteLaunchTemplate", |
| 74 | + "ec2:DeleteLaunchTemplateVersions", |
| 75 | + "ec2:DescribeLaunchTemplates", |
| 76 | + "ec2:DescribeLaunchTemplateVersions", |
| 77 | + "ec2:GetLaunchTemplateData", |
| 78 | + "ec2:ModifyLaunchTemplate", |
| 79 | + "ec2:RunInstances", |
| 80 | + "eks:CreateCluster", |
| 81 | + "eks:DeleteCluster", |
| 82 | + "eks:DescribeCluster", |
| 83 | + "eks:ListClusters", |
| 84 | + "eks:UpdateClusterConfig", |
| 85 | + "eks:DescribeUpdate", |
| 86 | + "iam:AddRoleToInstanceProfile", |
| 87 | + "iam:AttachRolePolicy", |
| 88 | + "iam:CreateInstanceProfile", |
| 89 | + "iam:CreateServiceLinkedRole", |
| 90 | + "iam:CreatePolicy", |
| 91 | + "iam:CreatePolicyVersion", |
| 92 | + "iam:CreateRole", |
| 93 | + "iam:DeleteInstanceProfile", |
| 94 | + "iam:DeletePolicy", |
| 95 | + "iam:DeleteRole", |
| 96 | + "iam:DeleteRolePolicy", |
| 97 | + "iam:DeleteServiceLinkedRole", |
| 98 | + "iam:DetachRolePolicy", |
| 99 | + "iam:GetInstanceProfile", |
| 100 | + "iam:GetPolicy", |
| 101 | + "iam:GetPolicyVersion", |
| 102 | + "iam:GetRole", |
| 103 | + "iam:GetRolePolicy", |
| 104 | + "iam:List*", |
| 105 | + "iam:PassRole", |
| 106 | + "iam:PutRolePolicy", |
| 107 | + "iam:RemoveRoleFromInstanceProfile", |
| 108 | + "iam:TagRole", |
| 109 | + "iam:UpdateAssumeRolePolicy", |
| 110 | + // Following permissions are needed if cluster_enabled_log_types is enabled |
| 111 | + "logs:CreateLogGroup", |
| 112 | + "logs:DescribeLogGroups", |
| 113 | + "logs:DeleteLogGroup", |
| 114 | + "logs:ListTagsLogGroup", |
| 115 | + "logs:PutRetentionPolicy" |
| 116 | + ], |
| 117 | + "Resource": "*" |
| 118 | + } |
| 119 | + ] |
| 120 | +} |
| 121 | +``` |
0 commit comments