View a markdown version of this page

Amazon Elastic Kubernetes Service 的操作、资源和条件键 - 服务授权参考
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

Amazon Elastic Kubernetes Service 的操作、资源和条件键

亚马逊 Elastic Kubernetes 服务(服务前缀: eks) 提供以下特定服务的操作、资源、操作和条件密钥,用于 IAM 权限策略。

参考:

亚马逊 Elastic Kubernetes 服务定义的 API 操作

下表将 API 操作映射到它们授权的 IAM 操作。仅列出具有给定 API 和操作静态值的条件密钥;有关每个操作支持的全套条件密钥,请参阅 操作表。

操作 IAM 操作 条件键 可能的值 访问级别

ActivateCertificateAuthority

eks:ActivateCertificateAuthority

写入

AssociateAccessPolicy

eks:AssociateAccessPolicy

写入

AssociateEncryptionConfig

eks:AssociateEncryptionConfig

写入

AssociateIdentityProviderConfig

eks:AssociateIdentityProviderConfig

写入

eks:TagResource

标记、写入

CancelUpdate

eks:CancelUpdate

写入

CreateAccessEntry

eks:CreateAccessEntry

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

ec2.amazonaws.com

写入

CreateAddon

eks:CreateAddon

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

eks.amazonaws.com

写入

CreateCapability

eks:CreateCapability

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

eks.amazonaws.com

写入

CreateCertificateAuthority

eks:CreateCertificateAuthority

写入

CreateCluster

eks:CreateAccessEntry

写入

eks:CreateCluster

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

ec2.amazonaws.com, eks.amazonaws.com

写入

CreateEksAnywhereSubscription

eks:CreateEksAnywhereSubscription

写入

eks:TagResource

标记、写入

CreateFargateProfile

eks:CreateFargateProfile

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

eks.amazonaws.com

写入

CreateNodegroup

eks:CreateNodegroup

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

eks.amazonaws.com

写入

CreatePodIdentityAssociation

eks:CreatePodIdentityAssociation

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

pods.eks.amazonaws.com

写入

DeleteAccessEntry

eks:DeleteAccessEntry

写入

DeleteAddon

eks:DeleteAddon

写入

DeleteCapability

eks:DeleteCapability

写入

DeleteCertificateAuthority

eks:DeleteCertificateAuthority

写入

DeleteCluster

eks:DeleteCluster

写入

DeleteEksAnywhereSubscription

eks:DeleteEksAnywhereSubscription

写入

DeleteFargateProfile

eks:DeleteFargateProfile

写入

DeleteNodegroup

eks:DeleteNodegroup

写入

DeletePodIdentityAssociation

eks:DeletePodIdentityAssociation

写入

DeregisterCluster

eks:DeregisterCluster

写入

DescribeAccessEntry

eks:DescribeAccessEntry

读取

DescribeAddon

eks:DescribeAddon

读取

DescribeAddonConfiguration

eks:DescribeAddonConfiguration

读取

DescribeAddonVersions

eks:DescribeAddonVersions

读取

DescribeCapability

eks:DescribeCapability

读取

DescribeCertificateAuthority

eks:DescribeCertificateAuthority

读取

DescribeCluster

eks:DescribeCluster

读取

DescribeClusterVersions

eks:DescribeClusterVersions

读取

DescribeEksAnywhereSubscription

eks:DescribeEksAnywhereSubscription

读取

DescribeFargateProfile

eks:DescribeFargateProfile

读取

DescribeIdentityProviderConfig

eks:DescribeIdentityProviderConfig

读取

DescribeInsight

eks:DescribeInsight

读取

DescribeInsightsRefresh

eks:DescribeInsightsRefresh

读取

DescribeNodegroup

eks:DescribeNodegroup

读取

DescribePodIdentityAssociation

eks:DescribePodIdentityAssociation

读取

DescribeUpdate

eks:DescribeUpdate

读取

DisassociateAccessPolicy

eks:DisassociateAccessPolicy

写入

DisassociateIdentityProviderConfig

eks:DisassociateIdentityProviderConfig

写入

ListAccessEntries

eks:ListAccessEntries

列表

ListAccessPolicies

eks:ListAccessPolicies

列表

ListAddons

eks:ListAddons

列表

ListAssociatedAccessPolicies

eks:ListAssociatedAccessPolicies

列表

ListCapabilities

eks:ListCapabilities

列表

ListCertificateAuthorities

eks:ListCertificateAuthorities

列表

ListClusters

eks:ListClusters

列表

ListEksAnywhereSubscriptions

eks:ListEksAnywhereSubscriptions

列表

ListFargateProfiles

eks:ListFargateProfiles

列表

ListIdentityProviderConfigs

eks:ListIdentityProviderConfigs

列表

ListInsights

eks:ListInsights

列表

ListNodegroups

eks:ListNodegroups

列表

ListPodIdentityAssociations

eks:ListPodIdentityAssociations

列表

ListTagsForResource

eks:ListTagsForResource

读取

ListUpdates

eks:ListUpdates

列表

RegisterCluster

eks:RegisterCluster

写入

eks:TagResource

标记、写入

iam:PassRole

iam:PassedToService

eks.amazonaws.com

写入

StartInsightsRefresh

eks:StartInsightsRefresh

写入

TagResource

eks:TagResource

标记、写入

UntagResource

eks:UntagResource

标记、写入

UpdateAccessEntry

eks:UpdateAccessEntry

写入

UpdateAddon

eks:UpdateAddon

写入

iam:PassRole

iam:PassedToService

eks.amazonaws.com

写入

UpdateCapability

eks:UpdateCapability

写入

iam:PassRole

iam:PassedToService

eks.amazonaws.com

写入

UpdateClusterConfig

eks:CreateAccessEntry

写入

eks:UpdateClusterConfig

写入

iam:PassRole

iam:PassedToService

ec2.amazonaws.com, eks.amazonaws.com

写入

UpdateClusterVersion

eks:UpdateClusterVersion

写入

UpdateEksAnywhereSubscription

eks:UpdateEksAnywhereSubscription

写入

UpdateNodegroupConfig

eks:UpdateNodegroupConfig

写入

UpdateNodegroupVersion

eks:UpdateNodegroupVersion

写入

UpdatePodIdentityAssociation

eks:UpdatePodIdentityAssociation

写入

iam:PassRole

iam:PassedToService

pods.eks.amazonaws.com

写入

Amazon Elastic Kubernetes Service 定义的操作

您可以在 IAM 策略语句的 Action 元素中指定以下操作。对于每个操作,该表列出了该操作支持的资源类型和条件键。可以使用策略授予在 Amazon中执行操作的权限。您在策略中使用一项操作时,通常使用相同的名称允许或拒绝对 API 操作或 CLI 命令的访问。但在某些情况下,单一动作可控制对多项操作的访问。还有某些操作需要多种不同的动作。

操作 说明 资源类型(* 为必需) 条件键 访问级别

ActivateCertificateAuthority

授予为 Amazon EKS 集群激活证书颁发机构的权限

cluster*

aws:ResourceTag/${TagKey}

写入

AssociateAccessPolicy

授予将 Amazon EKS 访问策略与 Amazon EKS 访问条目关联的权限

access-entry*

aws:ResourceTag/${TagKey}

eks:accessEntryType

eks:accessScope

eks:clusterName

eks:kubernetesGroups

eks:namespaces

eks:policyArn

eks:principalArn

eks:username

写入

AssociateEncryptionConfig

授予权限以将加密配置关联到集群

cluster*

aws:ResourceTag/${TagKey}

eks:encryptionConfigProviderKeyArns

Write

AssociateIdentityProviderConfig

授予权限以将身份提供商配置关联到集群

cluster*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

eks:clientId

eks:issuerUrl

写入

CancelUpdate

授予取消亚马逊 EKS 集群正在进行的 Kubernetes 版本更新的权限

cluster*

aws:ResourceTag/${TagKey}

写入

CreateAccessEntry

授予创建 Amazon EKS 访问条目的权限

cluster*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

eks:accessEntryType

eks:kubernetesGroups

eks:principalArn

eks:username

写入

CreateAddon

授予权限以创建 Amazon EKS 附加组件

cluster*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

podidentityassociation

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

CreateCapability

授予为 Amazon EKS 集群创建功能的权限

cluster*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateCertificateAuthority

授予为 Amazon EKS 集群创建证书颁发机构的权限

cluster*

aws:ResourceTag/${TagKey}

写入

CreateCluster

授予权限以创建 Amazon EKS 集群

aws:RequestTag/${TagKey}

aws:TagKeys

eks:authenticationMode

eks:blockStorageEnabled

eks:bootstrapClusterCreatorAdminPermissions

eks:bootstrapSelfManagedAddons

eks:computeConfigEnabled

eks:controlPlaneEgressMode

eks:controlPlaneScalingTier

eks:deletionProtection

eks:elasticLoadBalancingEnabled

eks:encryptionConfigProviderKeyArns

eks:endpointPrivateAccess

eks:endpointPublicAccess

eks:kubeApiServerConfig

eks:kubeControllerManagerConfig

eks:kubernetesVersion

eks:kubeSchedulerConfig

eks:loggingType/${type}

eks:supportType

eks:zonalShiftEnabled

写入

CreateEksAnywhereSubscription

授予创建 EKS Anywhere 订阅的权限

aws:RequestTag/${TagKey}

aws:TagKeys

写入

CreateFargateProfile

授予创建权限 Amazon Fargate 简介

cluster*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreateNodegroup

授予权限以创建 Amazon EKS 节点组

cluster*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

CreatePodIdentityAssociation

授予创建 EKS 容器组身份关联的权限

cluster*

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

写入

DeleteAccessEntry

授予删除 Amazon EKS 访问条目的权限

access-entry*

aws:ResourceTag/${TagKey}

eks:accessEntryType

eks:clusterName

eks:kubernetesGroups

eks:principalArn

eks:username

写入

DeleteAddon

授予权限以删除 Amazon EKS 附加组件

addon*

aws:ResourceTag/${TagKey}

写入

podidentityassociation

aws:ResourceTag/${TagKey}

DeleteCapability

授予从 Amazon EKS 集群中删除功能的权限

capability*

aws:ResourceTag/${TagKey}

写入

DeleteCertificateAuthority

授予从 Amazon EKS 集群中删除证书颁发机构的权限

cluster*

aws:ResourceTag/${TagKey}

写入

DeleteCluster

授予权限以删除 Amazon EKS 集群

cluster*

aws:ResourceTag/${TagKey}

写入

DeleteEksAnywhereSubscription

授予描述 EKS Anywhere 订阅的权限

eks-anywhere-subscription*

aws:ResourceTag/${TagKey}

写入

DeleteFargateProfile

授予删除权限 Amazon Fargate 简介

fargateprofile*

aws:ResourceTag/${TagKey}

写入

DeleteNodegroup

授予权限以删除 Amazon EKS 节点组

nodegroup*

aws:ResourceTag/${TagKey}

写入

DeletePodIdentityAssociation

授予删除 EKS 容器组身份关联的权限

podidentityassociation*

aws:ResourceTag/${TagKey}

写入

DeregisterCluster

授予取消注册外部集群的权限

cluster*

aws:ResourceTag/${TagKey}

写入

DescribeAccessEntry

授予描述 Amazon EKS 访问条目的权限

access-entry*

aws:ResourceTag/${TagKey}

eks:accessEntryType

eks:clusterName

eks:kubernetesGroups

eks:principalArn

eks:username

读取

DescribeAddon

授予权限以检索有关 Amazon EKS 附加组件的描述性信息

addon*

aws:ResourceTag/${TagKey}

读取

DescribeAddonConfiguration

授予列出有关 Amazon EKS 附加组件的配置选项的权限

读取

DescribeAddonVersions

授予检索有关亚马逊 EKS 插件的描述性版本信息的权限 Add-ons 支持

读取

DescribeCapability

授予描述 Amazon EKS 集群功能的权限

capability*

aws:ResourceTag/${TagKey}

读取

DescribeCertificateAuthority

授予检索有关 Amazon EKS 集群证书颁发机构的描述性信息的权限

cluster*

aws:ResourceTag/${TagKey}

读取

DescribeCluster

授予权限以检索有关 Amazon EKS 集群的描述性信息

cluster*

aws:ResourceTag/${TagKey}

读取

DescribeClusterVersions

授予权限以检索有关 Amazon EKS 集群支持的 Kubernetes 版本的描述性信息

读取

DescribeEksAnywhereSubscription

授予描述 EKS Anywhere 订阅的权限

eks-anywhere-subscription*

aws:ResourceTag/${TagKey}

读取

DescribeFargateProfile

授予检索有关某项的描述性信息的权限 Amazon 与集群关联的 Fargate 配置文件

fargateprofile*

aws:ResourceTag/${TagKey}

读取

DescribeIdentityProviderConfig

授予权限以检索与集群关联的 Idp config 的相关描述性信息

identityproviderconfig*

aws:ResourceTag/${TagKey}

读取

DescribeInsight

授予检索指定集群中检测到的见解的描述性信息的权限

cluster*

aws:ResourceTag/${TagKey}

读取

DescribeInsightsRefresh

授予权限以检索最新的按需集群见解刷新操作的状态

cluster*

aws:ResourceTag/${TagKey}

读取

DescribeNodegroup

授予权限以检索有关 Amazon EKS 节点组的描述性信息

nodegroup*

aws:ResourceTag/${TagKey}

读取

DescribePodIdentityAssociation

授予描述 EKS 容器组身份关联的权限

podidentityassociation*

aws:ResourceTag/${TagKey}

读取

DescribeUpdate

授予检索给定亚马逊 EKS 的给定更新的权限 cluster/nodegroup/addon(在指定或默认区域中)

addon

aws:ResourceTag/${TagKey}

读取

capability

aws:ResourceTag/${TagKey}

cluster*

aws:ResourceTag/${TagKey}

nodegroup

aws:ResourceTag/${TagKey}

DisassociateAccessPolicy

授予将 Amazon EKS 访问策略与 Amazon EKS 访问条目取消关联的权限

access-entry*

aws:ResourceTag/${TagKey}

eks:accessEntryType

eks:accessScope

eks:clusterName

eks:kubernetesGroups

eks:namespaces

eks:policyArn

eks:principalArn

eks:username

写入

DisassociateIdentityProviderConfig

授予权限以删除关联的 Idp config

identityproviderconfig*

aws:ResourceTag/${TagKey}

写入

ListAccessEntries

授予列出所有 Amazon EKS 访问条目的权限

cluster*

aws:ResourceTag/${TagKey}

列表

ListAccessPolicies

授予列出 Amazon EKS 访问策略的权限

列表

ListAddons

授予在您的网站上列出 Amazon EKS 插件的权限 Amazon Web Services 账户 (在指定或默认区域中)

cluster*

aws:ResourceTag/${TagKey}

列表

ListAssociatedAccessPolicies

授予列出关联访问策略与 Amazon EKS 访问条目的权限

access-entry*

aws:ResourceTag/${TagKey}

eks:accessEntryType

eks:clusterName

eks:kubernetesGroups

eks:principalArn

eks:username

列表

ListCapabilities

授予列出 Amazon EKS 集群功能的权限

cluster*

aws:ResourceTag/${TagKey}

列表

ListCertificateAuthorities

授予列出 Amazon EKS 集群证书颁发机构的权限

cluster*

aws:ResourceTag/${TagKey}

列表

ListClusters

授予列出您的 Amazon EKS 集群的权限 Amazon Web Services 账户 (在指定或默认区域中)

列表

ListDashboardData

授予权限以列出控制面板数据。Amazon EKS 控制面板聚合有关跨多个账户和区域的集群资源的信息。控制面板包含有关 EC2 实例和 EKS 集群版本的信息

dashboard*

aws:ResourceTag/${TagKey}

读取

ListDashboardResources

授予权限以列出控制面板资源。Amazon EKS 控制面板聚合有关跨多个账户和区域的集群资源的信息。控制面板包含有关 EC2 实例和 EKS 集群版本的信息

dashboard*

aws:ResourceTag/${TagKey}

读取

ListEksAnywhereSubscriptions

授予列出 EKS Anywhere 订阅的权限

列表

ListFargateProfiles

授予列出该内容的权限 Amazon 你的 Fargate 个人资料 Amazon Web Services 账户 (在指定或默认区域中)与给定集群相关联

cluster*

aws:ResourceTag/${TagKey}

列表

ListIdentityProviderConfigs

授予列出您的 Idp 配置的权限 Amazon Web Services 账户 (在指定或默认区域中)与给定集群相关联

cluster*

aws:ResourceTag/${TagKey}

列表

ListInsights

授予列出指定集群的所有检测见解的权限

cluster*

aws:ResourceTag/${TagKey}

列表

ListNodegroups

授予列出您的 Amazon EKS 节点组的权限 Amazon Web Services 账户 (在指定或默认区域中)连接到给定集群

cluster*

aws:ResourceTag/${TagKey}

列表

ListPodIdentityAssociations

授予列出 EKS 容器组身份关联的权限

cluster*

aws:ResourceTag/${TagKey}

列表

ListTagsForResource

授予列出指定资源的标签的权限

addon

aws:ResourceTag/${TagKey}

读取

capability

aws:ResourceTag/${TagKey}

cluster

aws:ResourceTag/${TagKey}

dashboard

aws:ResourceTag/${TagKey}

eks-anywhere-subscription

aws:ResourceTag/${TagKey}

fargateprofile

aws:ResourceTag/${TagKey}

identityproviderconfig

aws:ResourceTag/${TagKey}

nodegroup

aws:ResourceTag/${TagKey}

ListUpdates

授予列出给定亚马逊 EKS 更新的权限 cluster/nodegroup/addon(在指定或默认区域中)

addon

aws:ResourceTag/${TagKey}

列表

capability

aws:ResourceTag/${TagKey}

cluster*

aws:ResourceTag/${TagKey}

nodegroup

aws:ResourceTag/${TagKey}

RegisterCluster

授予注册外部集群的权限

aws:RequestTag/${TagKey}

aws:TagKeys

写入

StartInsightsRefresh

授予权限以启动按需集群见解刷新操作,以便在标准刷新计划之外获取最新分析

cluster*

aws:ResourceTag/${TagKey}

写入

TagResource

授予标记指定资源的权限

access-entry

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

eks:accessEntryType

eks:clusterName

eks:kubernetesGroups

eks:principalArn

eks:username

标记、写入

addon

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

capability

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

cluster

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

dashboard

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

eks-anywhere-subscription

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

fargateprofile

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

identityproviderconfig

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

nodegroup

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

podidentityassociation

aws:RequestTag/${TagKey}

aws:ResourceTag/${TagKey}

aws:TagKeys

UntagResource

授予取消标记指定资源的权限

access-entry

aws:ResourceTag/${TagKey}

aws:TagKeys

eks:accessEntryType

eks:clusterName

eks:kubernetesGroups

eks:principalArn

eks:username

标记、写入

addon

aws:ResourceTag/${TagKey}

aws:TagKeys

capability

aws:ResourceTag/${TagKey}

aws:TagKeys

cluster

aws:ResourceTag/${TagKey}

aws:TagKeys

dashboard

aws:ResourceTag/${TagKey}

aws:TagKeys

eks-anywhere-subscription

aws:ResourceTag/${TagKey}

aws:TagKeys

fargateprofile

aws:ResourceTag/${TagKey}

aws:TagKeys

identityproviderconfig

aws:ResourceTag/${TagKey}

aws:TagKeys

nodegroup

aws:ResourceTag/${TagKey}

aws:TagKeys

podidentityassociation

aws:ResourceTag/${TagKey}

aws:TagKeys

UpdateAccessEntry

授予更新 Amazon EKS 访问条目的权限

access-entry*

aws:ResourceTag/${TagKey}

eks:accessEntryType

eks:clusterName

eks:kubernetesGroups

eks:principalArn

eks:username

写入

UpdateAddon

授予更新 Amazon EKS 插件配置的权限,例如 VPC-CNI 版本

addon*

aws:ResourceTag/${TagKey}

写入

podidentityassociation

aws:ResourceTag/${TagKey}

UpdateCapability

授予更新 Amazon EKS 集群功能的权限

capability*

aws:ResourceTag/${TagKey}

写入

UpdateClusterConfig

授予权限以更新 Amazon EKS 集群配置(例如,API 服务器终端节点访问)

cluster*

aws:ResourceTag/${TagKey}

eks:authenticationMode

eks:blockStorageEnabled

eks:computeConfigEnabled

eks:controlPlaneEgressMode

eks:controlPlaneScalingTier

eks:deletionProtection

eks:elasticLoadBalancingEnabled

eks:endpointPrivateAccess

eks:endpointPublicAccess

eks:kubeApiServerConfig

eks:kubeControllerManagerConfig

eks:kubeSchedulerConfig

eks:loggingType/${type}

eks:supportType

eks:zonalShiftEnabled

Write

UpdateClusterVersion

授予权限以更新 Amazon EKS 集群的 Kubernetes 版本

cluster*

aws:ResourceTag/${TagKey}

eks:kubernetesVersion

写入

UpdateEksAnywhereSubscription

授予更新 EKS Anywhere 订阅的权限

eks-anywhere-subscription*

aws:ResourceTag/${TagKey}

写入

UpdateNodegroupConfig

授予更新 Amazon EKS 节点组配置的权限(例如: min/max/所需容量或标签)

nodegroup*

aws:ResourceTag/${TagKey}

写入

UpdateNodegroupVersion

授予权限以更新 Amazon EKS 节点组的 Kubernetes 版本

nodegroup*

aws:ResourceTag/${TagKey}

写入

UpdatePodIdentityAssociation

授予更新 EKS 容器组身份关联的权限

podidentityassociation*

aws:ResourceTag/${TagKey}

写入

Permission-only 亚马逊 Elastic Kubernetes 服务的操作

以下操作由亚马逊弹性 Kubernetes 服务定义,但不能通过任何 API 操作直接调用。它们只能在 IAM 政策声明中用于授予或拒绝权限。

操作 说明 资源类型(* 为必需) 条件键 访问级别

AccessKubernetesApi

授予通过以下方式查看 Kubernetes 对象的权限 Amazon EKS 控制台

cluster*

aws:ResourceTag/${TagKey}

读取

MutateViaKubernetesApi

通过以下方式授予修改 Kubernetes 对象的权限 Amazon 控制台

cluster*

aws:ResourceTag/${TagKey}

写入

Amazon Elastic Kubernetes Service 定义的资源类型

以下资源类型是由该服务定义的,可以在 IAM 权限策略语句的 Resource 元素中使用这些资源类型。

资源类型 ARN 条件键

access-entry

arn:${Partition}:eks:${Region}:${Account}:access-entry/${ClusterName}/${IamIdentityType}/${IamIdentityAccountID}/${IamIdentityName}/${UUID}

aws:ResourceTag/${TagKey}

eks:accessEntryType

eks:clusterName

eks:kubernetesGroups

eks:principalArn

eks:username

access-policy

arn:${Partition}:eks::aws:cluster-access-policy/${AccessPolicyName}

addon

arn:${Partition}:eks:${Region}:${Account}:addon/${ClusterName}/${AddonName}/${UUID}

aws:ResourceTag/${TagKey}

capability

arn:${Partition}:eks:${Region}:${Account}:capability/${ClusterName}/${CapabilityType}/${CapabilityName}/${UUID}

aws:ResourceTag/${TagKey}

cluster

arn:${Partition}:eks:${Region}:${Account}:cluster/${ClusterName}

aws:ResourceTag/${TagKey}

dashboard

arn:${Partition}:eks:${Region}:${Account}:dashboard/${DashboardName}

aws:ResourceTag/${TagKey}

eks-anywhere-subscription

arn:${Partition}:eks:${Region}:${Account}:eks-anywhere-subscription/${UUID}

aws:ResourceTag/${TagKey}

fargateprofile

arn:${Partition}:eks:${Region}:${Account}:fargateprofile/${ClusterName}/${FargateProfileName}/${UUID}

aws:ResourceTag/${TagKey}

identityproviderconfig

arn:${Partition}:eks:${Region}:${Account}:identityproviderconfig/${ClusterName}/${IdentityProviderType}/${IdentityProviderConfigName}/${UUID}

aws:ResourceTag/${TagKey}

nodegroup

arn:${Partition}:eks:${Region}:${Account}:nodegroup/${ClusterName}/${NodegroupName}/${UUID}

aws:ResourceTag/${TagKey}

podidentityassociation

arn:${Partition}:eks:${Region}:${Account}:podidentityassociation/${ClusterName}/${UUID}

aws:ResourceTag/${TagKey}

Amazon Elastic Kubernetes Service 的条件键

Amazon Elastic Kubernetes Service 定义以下可以在 IAM policy 的 Condition 元素中使用的条件键。

条件键 描述 类型

aws:RequestTag/${TagKey}

按用户向 EKS 服务发出的请求中包含的键筛选访问

String

aws:ResourceTag/${TagKey}

按标签键值对筛选访问

String

aws:TagKeys

按用户向 EKS 服务发出的请求中包含的所有标签键名称的列表筛选访问

ArrayOfString

eks:accessEntryType

按用户向 EKS 服务发出的访问条目请求中所包含的访问条目类型筛选访问权限

String

eks:accessScope

按用户向 EKS 服务发出的关联/取消关联访问策略请求中包含的 accessScope 筛选访问权限

String

eks:authenticationMode

按创建/更新集群请求中所包含的身份验证模式筛选访问权限

String

eks:blockStorageEnabled

按创建/更新集群请求中的块存储启用参数筛选访问权限

Bool

eks:bootstrapClusterCreatorAdminPermissions

通过引导过滤访问权限ClusterCreatorAdminPermissions 出现在创建集群请求中

Bool

eks:bootstrapSelfManagedAddons

通过引导过滤访问权限SelfManagedAddons 出现在创建集群请求中

Bool

eks:clientId

按关联中存在的 clientID 筛选访问权限IdentityProviderConfig 用户向 EKS 服务发出的请求

String

eks:clusterName

按用户向 EKS 服务发出的访问条目请求中所包含的 clusterName 筛选访问权限

String

eks:computeConfigEnabled

按创建/更新集群请求中的已启用计算配置的参数筛选访问权限

Bool

eks:controlPlaneEgressMode

按创建/更新集群请求中指定的控制平面出口模式筛选访问权限

String

eks:controlPlaneScalingTier

在创建/更新集群请求中按控制平面扩展层筛选访问权限

String

eks:deletionProtection

按创建/更新集群请求中的删除保护设置筛选访问权限

Bool

eks:elasticLoadBalancingEnabled

按创建/更新集群请求中的已启用弹性负载均衡的参数筛选访问权限

Bool

eks:encryptionConfigProviderKeyArns

按创建集群/关联加密配置请求中的 KMS 密钥 ARN 筛选访问权限

ArrayOfARN

eks:endpointPrivateAccess

按创建/更新集群请求中的终端节点私有访问权限设置筛选访问权限

Bool

eks:endpointPublicAccess

按创建/更新集群请求中的终端节点公共访问权限设置筛选访问权限

Bool

eks:issuerUrl

按关联中存在的 issuerURL 筛选访问权限IdentityProviderConfig 用户向 EKS 服务发出的请求

String

eks:kubeApiServerConfig

根据创建/更新集群请求中是否存在 kube-api-server 配置来过滤访问权限

Bool

eks:kubeControllerManagerConfig

根据创建/更新集群请求中是否存在 kube-controller-manager 配置来过滤访问权限

Bool

eks:kubeSchedulerConfig

根据创建/更新集群请求中是否存在 kube-scheduler 配置来筛选访问权限

Bool

eks:kubernetesGroups

按用户向 EKS 服务发出的访问条目请求中所包含的 kubernetesGroups 筛选访问权限

ArrayOfString

eks:kubernetesVersion

在创建集群/更新集群版本请求中按 Kubernetes 版本筛选访问权限

String

eks:loggingType/${type}

通过启用集群日志记录和创建/更新集群请求中的类型参数筛选访问权限

Bool

eks:namespaces

按用户向 EKS 服务发出的关联/取消关联访问策略请求中包含的 namespaces 筛选访问权限

ArrayOfString

eks:policyArn

按用户向 EKS 服务发出的访问条目请求中所包含的 policyArn 筛选访问权限

ARN

eks:principalArn

按用户向 EKS 服务发出的访问条目请求中所包含的 principalArn 筛选访问权限

ARN

eks:supportType

按创建/更新集群请求中所包含的 supportType 筛选访问权限

String

eks:username

按用户向 EKS 服务发出的访问条目请求中所包含的 Kubernetes 用户名筛选访问权限

String

eks:zonalShiftEnabled

按创建/更新集群请求中的启用分区转移设置筛选访问权限

Bool