AmazonEKSLoadBalancingPolicy - AWS Managed Policy

AmazonEKSLoadBalancingPolicy

Description: Policy attached to the EKS Cluster Role that grants permissions to manage the cluster's load balancing resources.

AmazonEKSLoadBalancingPolicy is an AWS managed policy.

Using this policy

You can attach AmazonEKSLoadBalancingPolicy to your users, groups, and roles.

Policy details

  • Type: AWS managed policy

  • Creation time: October 30, 2024, 20:18 UTC

  • Edited time: October 30, 2024, 20:18 UTC

  • ARN: arn:aws:iam::aws:policy/AmazonEKSLoadBalancingPolicy

Policy version

Policy version: v1 (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" : [ "elasticloadbalancing:CreateLoadBalancer", "elasticloadbalancing:CreateTargetGroup", "elasticloadbalancing:CreateListener", "elasticloadbalancing:CreateRule", "ec2:CreateSecurityGroup" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:RequestTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" }, "ForAllValues:StringEquals" : { "aws:TagKeys" : [ "eks:eks-cluster-name", "ingress.eks.amazonaws.com/stack", "ingress.eks.amazonaws.com/resource", "service.eks.amazonaws.com/stack", "service.eks.amazonaws.com/resource" ] } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateSecurityGroup" ], "Resource" : "arn:aws:ec2:*:*:vpc/*" }, { "Effect" : "Allow", "Action" : [ "elasticloadbalancing:RegisterTargets" ], "Resource" : "arn:aws:elasticloadbalancing:*:*:targetgroup/*/*", "Condition" : { "StringEquals" : { "aws:ResourceTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" } } }, { "Effect" : "Allow", "Action" : [ "ec2:AuthorizeSecurityGroupIngress" ], "Resource" : "arn:aws:ec2:*:*:security-group-rule/*", "Condition" : { "StringEquals" : { "aws:RequestTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" } } }, { "Effect" : "Allow", "Action" : [ "ec2:AuthorizeSecurityGroupIngress", "ec2:RevokeSecurityGroupIngress" ], "Resource" : "arn:aws:ec2:*:*:security-group/*", "Condition" : { "StringLike" : { "aws:ResourceTag/Name" : "eks-cluster-sg*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:AuthorizeSecurityGroupIngress", "ec2:RevokeSecurityGroupIngress" ], "Resource" : "arn:aws:ec2:*:*:security-group/*", "Condition" : { "StringEquals" : { "aws:ResourceTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" } } }, { "Effect" : "Allow", "Action" : [ "elasticloadbalancing:AddTags" ], "Resource" : "*", "Condition" : { "StringEquals" : { "elasticloadbalancing:CreateAction" : [ "CreateLoadBalancer", "CreateTargetGroup", "CreateListener", "CreateRule" ] } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateTags" ], "Resource" : "*", "Condition" : { "StringEquals" : { "ec2:CreateAction" : [ "CreateSecurityGroup", "AuthorizeSecurityGroupIngress" ] } } }, { "Effect" : "Allow", "Action" : [ "elasticloadbalancing:ModifyLoadBalancerAttributes", "elasticloadbalancing:SetIpAddressType", "elasticloadbalancing:SetSecurityGroups", "elasticloadbalancing:SetSubnets", "elasticloadbalancing:ModifyTargetGroup", "elasticloadbalancing:ModifyTargetGroupAttributes", "elasticloadbalancing:ModifyListener", "elasticloadbalancing:AddListenerCertificates", "elasticloadbalancing:ModifyListenerAttributes", "elasticloadbalancing:RemoveListenerCertificates", "elasticloadbalancing:ModifyRule" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" } } }, { "Effect" : "Allow", "Action" : [ "wafv2:AssociateWebACL", "wafv2:DisassociateWebACL" ], "Resource" : [ "arn:aws:wafv2:*:*:*/webacl/*/*", "arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/*" ] }, { "Effect" : "Allow", "Action" : [ "shield:CreateProtection" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:RequestTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" }, "ForAllValues:StringEquals" : { "aws:TagKeys" : [ "eks:eks-cluster-name", "ingress.eks.amazonaws.com/stack", "ingress.eks.amazonaws.com/resource", "service.eks.amazonaws.com/stack", "service.eks.amazonaws.com/resource" ] } } }, { "Effect" : "Allow", "Action" : [ "shield:DeleteProtection" ], "Resource" : "*", "Condition" : { "StringEquals" : { "aws:ResourceTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" } } }, { "Effect" : "Allow", "Action" : [ "shield:TagResource" ], "Resource" : "arn:aws:shield::*:protection/*", "Condition" : { "StringEquals" : { "aws:RequestTag/eks:eks-cluster-name" : "${aws:PrincipalTag/eks:eks-cluster-name}" }, "ForAllValues:StringEquals" : { "aws:TagKeys" : [ "eks:eks-cluster-name", "ingress.eks.amazonaws.com/stack", "ingress.eks.amazonaws.com/resource", "service.eks.amazonaws.com/stack", "service.eks.amazonaws.com/resource" ] } } }, { "Effect" : "Allow", "Action" : [ "cognito-idp:DescribeUserPoolClient", "acm:ListCertificates", "acm:DescribeCertificate", "wafv2:GetWebACL", "wafv2:GetWebACLForResource", "elasticloadbalancing:SetWebAcl", "elasticloadbalancing:DescribeTargetGroups" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "iam:CreateServiceLinkedRole" ], "Resource" : "arn:aws:iam::*:role/aws-service-role/elasticloadbalancing.amazonaws.com/AWSServiceRoleForElasticLoadBalancing", "Condition" : { "StringEquals" : { "iam:AWSServiceName" : "elasticloadbalancing.amazonaws.com" } } } ] }

Learn more