AmazonEKSServiceRolePolicy - AWS Política gerenciada

As traduções são geradas por tradução automática. Em caso de conflito entre o conteúdo da tradução e da versão original em inglês, a versão em inglês prevalecerá.

AmazonEKSServiceRolePolicy

Descrição: É necessária uma função vinculada ao serviço para que EKS a Amazon ligue para AWS serviços em seu nome.

AmazonEKSServiceRolePolicy é uma política gerenciada pelo AWS.

Utilização desta política

Essa política é vinculada a uma função associada a um serviço, o que possibilita que este serviço execute ações em seu próprio nome. Não é possível vincular esta política a usuários, grupos ou funções.

Detalhes desta política

  • Tipo: Política de função vinculada ao serviço

  • Tempo de criação: 21 de fevereiro de 2020, 20:10 UTC

  • Horário editado: 16 de novembro de 2024, 17:42 UTC

  • ARN: arn:aws:iam::aws:policy/aws-service-role/AmazonEKSServiceRolePolicy

Versão da política

Versão da política: v5 (padrão)

A versão padrão da política é aquela que define as permissões desta política. Quando um usuário ou função da política faz uma solicitação para acessar um AWS recurso, AWS verifica a versão padrão da política para determinar se a solicitação deve ser permitida.

JSONdocumento de política

{ "Version" : "2012-10-17", "Statement" : [ { "Effect" : "Allow", "Action" : [ "ec2:CreateNetworkInterface", "ec2:DeleteNetworkInterface", "ec2:DetachNetworkInterface", "ec2:ModifyNetworkInterfaceAttribute", "ec2:CreateSecurityGroup", "ec2:CreateNetworkInterfacePermission" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "ec2:DescribeAccountAttributes", "ec2:DescribeAddresses", "ec2:DescribeAvailabilityZones", "ec2:DescribeCoipPools", "ec2:DescribeInstances", "ec2:DescribeInstanceTypeOfferings", "ec2:DescribeInstanceTypes", "ec2:DescribeInternetGateways", "ec2:DescribeLaunchTemplates", "ec2:DescribeNetworkInterfaces", "ec2:DescribeSecurityGroups", "ec2:DescribeSnapshots", "ec2:DescribeSpotPriceHistory", "ec2:DescribeSubnets", "ec2:DescribeTags", "ec2:DescribeVolumes", "ec2:DescribeVolumesModifications", "ec2:DescribeVpcPeeringConnections", "ec2:DescribeVpcs", "ec2:GetCoipPoolUsage", "ec2:GetSecurityGroupsForVpc", "eks:DescribeCluster", "elasticloadbalancing:DescribeListenerAttributes", "elasticloadbalancing:DescribeListenerCertificates", "elasticloadbalancing:DescribeListeners", "elasticloadbalancing:DescribeLoadBalancerAttributes", "elasticloadbalancing:DescribeLoadBalancers", "elasticloadbalancing:DescribeRules", "elasticloadbalancing:DescribeSSLPolicies", "elasticloadbalancing:DescribeTags", "elasticloadbalancing:DescribeTargetGroupAttributes", "elasticloadbalancing:DescribeTargetGroups", "elasticloadbalancing:DescribeTargetHealth", "elasticloadbalancing:DescribeTrustStores", "iam:ListAttachedRolePolicies", "pricing:GetProducts", "shield:GetSubscriptionState", "tag:GetResources" ], "Resource" : "*" }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteSecurityGroup", "ec2:RevokeSecurityGroupIngress", "ec2:AuthorizeSecurityGroupIngress" ], "Resource" : "arn:aws:ec2:*:*:security-group/*", "Condition" : { "StringLike" : { "ec2:ResourceTag/Name" : "eks-cluster-sg*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateTags", "ec2:DeleteTags" ], "Resource" : [ "arn:aws:ec2:*:*:vpc/*", "arn:aws:ec2:*:*:subnet/*", "arn:aws:ec2:*:*:network-interface/*", "arn:aws:ec2:*:*:security-group/*" ], "Condition" : { "ForAnyValue:StringLike" : { "aws:TagKeys" : [ "kubernetes.io/cluster/*" ] } } }, { "Effect" : "Allow", "Action" : [ "ec2:CreateTags", "ec2:DeleteTags" ], "Resource" : [ "arn:aws:ec2:*:*:security-group/*", "arn:aws:ec2:*:*:network-interface/*" ], "Condition" : { "StringLike" : { "aws:RequestTag/Name" : "eks-cluster-*" } } }, { "Effect" : "Allow", "Action" : "route53:AssociateVPCWithHostedZone", "Resource" : "arn:aws:route53:::hostedzone/*" }, { "Effect" : "Allow", "Action" : "logs:CreateLogGroup", "Resource" : "arn:aws:logs:*:*:log-group:/aws/eks/*" }, { "Effect" : "Allow", "Action" : [ "logs:CreateLogStream", "logs:DescribeLogStreams" ], "Resource" : "arn:aws:logs:*:*:log-group:/aws/eks/*:*" }, { "Effect" : "Allow", "Action" : "logs:PutLogEvents", "Resource" : "arn:aws:logs:*:*:log-group:/aws/eks/*:*:*" }, { "Effect" : "Allow", "Action" : "cloudwatch:PutMetricData", "Resource" : "*", "Condition" : { "StringLike" : { "cloudwatch:namespace" : "AWS/EKS" } } }, { "Effect" : "Allow", "Action" : [ "eks:CreateAccessEntry", "eks:DeleteAccessEntry" ], "Resource" : "*", "Condition" : { "StringEquals" : { "eks:accessEntryType" : "STANDARD" }, "ArnLike" : { "eks:principalArn" : "arn:aws:iam::*:role/aws-service-role/eks.amazonaws.com/AWSServiceRoleForAmazonEKS" } } }, { "Effect" : "Allow", "Action" : [ "eks:ListAssociatedAccessPolicies" ], "Resource" : "arn:aws:eks:*:*:access-entry/*/role/${aws:PrincipalAccount}/AWSServiceRoleForAmazonEKS/*" }, { "Effect" : "Allow", "Action" : [ "eks:AssociateAccessPolicy", "eks:DisassociateAccessPolicy" ], "Resource" : "arn:aws:eks:*:*:access-entry/*/role/${aws:PrincipalAccount}/AWSServiceRoleForAmazonEKS/*", "Condition" : { "StringEquals" : { "eks:policyArn" : [ "arn:aws:eks::aws:cluster-access-policy/AmazonEKSComputePolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSComputeClusterPolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSNetworkingPolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSNetworkingClusterPolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSLoadBalancingPolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSLoadBalancingClusterPolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSBlockStoragePolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSBlockStorageClusterPolicy", "arn:aws:eks::aws:cluster-access-policy/AmazonEKSHybridPolicy" ] } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteNetworkInterface" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:ResourceTag/eks:eks-cluster-name" : "*" } } }, { "Effect" : "Allow", "Action" : "eks:DescribeAccessEntry", "Resource" : "*", "Condition" : { "StringEquals" : { "eks:accessEntryType" : "EC2" } } }, { "Effect" : "Allow", "Action" : "events:PutRule", "Resource" : "arn:aws:events:*:*:rule/EKS*", "Condition" : { "ForAllValues:StringEquals" : { "events:source" : [ "aws.ec2", "aws.health" ] }, "StringEquals" : { "events:ManagedBy" : [ "eks.amazonaws.com" ] } } }, { "Effect" : "Allow", "Action" : "events:PutTargets", "Resource" : "arn:aws:events:*:*:rule/EKS*" }, { "Effect" : "Allow", "Action" : [ "iam:GetInstanceProfile", "iam:CreateInstanceProfile", "iam:DeleteInstanceProfile", "iam:RemoveRoleFromInstanceProfile" ], "Resource" : "arn:aws:iam::*:instance-profile/eks*" }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteLaunchTemplate", "ec2:TerminateInstances" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:ResourceTag/eks:eks-cluster-name" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteVolume" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:ResourceTag/eks:eks-cluster-name" : "*" } } }, { "Effect" : "Allow", "Action" : [ "ec2:DeleteSnapshot" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:ResourceTag/eks:eks-cluster-name" : "*" } } }, { "Effect" : "Allow", "Action" : [ "elasticloadbalancing:DeleteListener", "elasticloadbalancing:DeleteRule", "elasticloadbalancing:DeregisterTargets", "elasticloadbalancing:DeleteLoadBalancer", "elasticloadbalancing:DeleteTargetGroup", "ec2:DeleteSecurityGroup", "shield:DescribeProtection" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:ResourceTag/eks:eks-cluster-name" : "*" } } } ] }

Saiba mais