Actions, resources, and condition keys for Amazon Elastic Kubernetes Service
Amazon Elastic Kubernetes Service (service prefix: eks
) provides the following service-specific resources, actions, and condition context keys for use in IAM permission policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
Topics
Actions defined by Amazon Elastic Kubernetes Service
You can specify the following actions in the Action
element of an IAM policy statement. Use policies to grant permissions to perform an operation in AWS. When you use an action in a policy, you usually allow or deny access to the API operation or CLI command with the same name. However, in some cases, a single action controls access to more than one operation. Alternatively, some operations require several different actions.
The Resource types column of the Actions table indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") to which the policy applies in the Resource
element of your policy statement. If the column includes a resource type, then you can specify an ARN of that type in a statement with that action. If the action has one or more required resources, the caller must have permission to use the action with those resources. Required resources are indicated in the table with an asterisk (*). If you limit resource access with the Resource
element in an IAM policy, you must include an ARN or pattern for each required resource type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one of the optional resource types.
The Condition keys column of the Actions table includes keys that you can specify in a policy statement's Condition
element. For more information on the condition keys that are associated with resources for the service, see the Condition keys column of the Resource types table.
Note
Resource condition keys are listed in the Resource types table. You can find a link to the resource type that applies to an action in the Resource types (*required) column of the Actions table. The resource type in the Resource types table includes the Condition keys column, which are the resource condition keys that apply to an action in the Actions table.
For details about the columns in the following table, see Actions table.
Actions | Description | Access level | Resource types (*required) | Condition keys | Dependent actions |
---|---|---|---|---|---|
AccessKubernetesApi [permission only] | Grants permission to view Kubernetes objects via AWS EKS console | Read | |||
AssociateAccessPolicy | Grants permission to associate an Amazon EKS access policy to an Amazon EKS access entry | Write | |||
AssociateEncryptionConfig | Grants permission to associate encryption configuration to a cluster | Write | |||
AssociateIdentityProviderConfig | Grants permission to associate an identity provider configuration to a cluster | Write | |||
CreateAccessEntry | Grants permission to create an Amazon EKS access entry | Write | |||
CreateAddon | Grants permission to create an Amazon EKS add-on | Write | |||
CreateCluster | Grants permission to create an Amazon EKS cluster | Write |
eks:bootstrapClusterCreatorAdminPermissions |
||
CreateEksAnywhereSubscription | Grants permission to create an EKS Anywhere subscription | Write | |||
CreateFargateProfile | Grants permission to create an AWS Fargate profile | Write | |||
CreateNodegroup | Grants permission to create an Amazon EKS Nodegroup | Write | |||
CreatePodIdentityAssociation | Grants permission to create an EKS Pod Identity association | Write | |||
DeleteAccessEntry | Grants permission to delete an Amazon EKS access entry | Write | |||
DeleteAddon | Grants permission to delete an Amazon EKS add-on | Write | |||
DeleteCluster | Grants permission to delete an Amazon EKS cluster | Write | |||
DeleteEksAnywhereSubscription | Grants permission to describe an EKS Anywhere subscription | Write | |||
DeleteFargateProfile | Grants permission to delete an AWS Fargate profile | Write | |||
DeleteNodegroup | Grants permission to delete an Amazon EKS Nodegroup | Write | |||
DeletePodIdentityAssociation | Grants permission to delete an EKS Pod Identity association | Write | |||
DeregisterCluster | Grants permission to deregister an External cluster | Write | |||
DescribeAccessEntry | Grants permission to describe an Amazon EKS access entry | Read | |||
DescribeAddon | Grants permission to retrieve descriptive information about an Amazon EKS add-on | Read | |||
DescribeAddonConfiguration | Grants permission to list configuration options about an Amazon EKS add-on | Read | |||
DescribeAddonVersions | Grants permission to retrieve descriptive version information about the add-ons that Amazon EKS Add-ons supports | Read | |||
DescribeCluster | Grants permission to retrieve descriptive information about an Amazon EKS cluster | Read | |||
DescribeEksAnywhereSubscription | Grants permission to describe an EKS Anywhere subscription | Read | |||
DescribeFargateProfile | Grants permission to retrieve descriptive information about an AWS Fargate profile associated with a cluster | Read | |||
DescribeIdentityProviderConfig | Grants permission to retrieve descriptive information about an Idp config associated with a cluster | Read | |||
DescribeInsight | Grants permission to retrieve descriptive information of a detected insight for a specified cluster | Read | |||
DescribeNodegroup | Grants permission to retrieve descriptive information about an Amazon EKS nodegroup | Read | |||
DescribePodIdentityAssociation | Grants permission to describe an EKS Pod Identity association | Read | |||
DescribeUpdate | Grants permission to retrieve a given update for a given Amazon EKS cluster/nodegroup/add-on (in the specified or default region) | Read | |||
DisassociateAccessPolicy | Grants permission to disassociate an Amazon EKS access policy from an Amazon EKS acces entry | Write | |||
DisassociateIdentityProviderConfig | Grants permission to delete an asssociated Idp config | Write | |||
ListAccessEntries | Grants permission to list all Amazon EKS access entries | List | |||
ListAccessPolicies | Grants permission to list Amazon EKS access policies | List | |||
ListAddons | Grants permission to list the Amazon EKS add-ons in your AWS account (in the specified or default region) for a given cluster | List | |||
ListAssociatedAccessPolicies | Grants permission to list associated access policy on and Amazon EKS access entry | List | |||
ListClusters | Grants permission to list the Amazon EKS clusters in your AWS account (in the specified or default region) | List | |||
ListEksAnywhereSubscriptions | Grants permission to list EKS Anywhere subscriptions | List | |||
ListFargateProfiles | Grants permission to list the AWS Fargate profiles in your AWS account (in the specified or default region) associated with a given cluster | List | |||
ListIdentityProviderConfigs | Grants permission to list the Idp configs in your AWS account (in the specified or default region) associated with a given cluster | List | |||
ListInsights | Grants permission to list all detected insights for a specified cluster | List | |||
ListNodegroups | Grants permission to list the Amazon EKS nodegroups in your AWS account (in the specified or default region) attached to given cluster | List | |||
ListPodIdentityAssociations | Grants permission to list EKS Pod Identity associations | List | |||
ListTagsForResource | Grants permission to list tags for the specified resource | Read | |||
ListUpdates | Grants permission to list the updates for a given Amazon EKS cluster/nodegroup/add-on (in the specified or default region) | List | |||
RegisterCluster | Grants permission to register an External cluster | Write | |||
TagResource | Grants permission to tag the specified resource | Tagging | |||
UntagResource | Grants permission to untag the specified resource | Tagging | |||
UpdateAccessEntry | Grants permission to update an Amazon EKS access entry | Write | |||
UpdateAddon | Grants permission to update Amazon EKS add-on configurations, such as the VPC-CNI version | Write | |||
UpdateClusterConfig | Grants permission to update Amazon EKS cluster configurations (eg: API server endpoint access) | Write | |||
UpdateClusterVersion | Grants permission to update the Kubernetes version of an Amazon EKS cluster | Write | |||
UpdateEksAnywhereSubscription | Grants permission to update an EKS Anywhere subscription | Write | |||
UpdateNodegroupConfig | Grants permission to update Amazon EKS nodegroup configurations (eg: min/max/desired capacity or labels) | Write | |||
UpdateNodegroupVersion | Grants permission to update the Kubernetes version of an Amazon EKS nodegroup | Write | |||
UpdatePodIdentityAssociation | Grants permission to update an EKS Pod Identity association | Write |
Resource types defined by Amazon Elastic Kubernetes Service
The following resource types are defined by this service and can be used in the Resource
element of IAM permission policy statements. Each action in the Actions table identifies the resource types that can be specified with that action. A resource type can also define which condition keys you can include in a policy. These keys are displayed in the last column of the Resource types table. For details about the columns in the following table, see Resource types table.
Resource types | ARN | Condition keys |
---|---|---|
cluster |
arn:${Partition}:eks:${Region}:${Account}:cluster/${ClusterName}
|
|
nodegroup |
arn:${Partition}:eks:${Region}:${Account}:nodegroup/${ClusterName}/${NodegroupName}/${UUID}
|
|
addon |
arn:${Partition}:eks:${Region}:${Account}:addon/${ClusterName}/${AddonName}/${UUID}
|
|
fargateprofile |
arn:${Partition}:eks:${Region}:${Account}:fargateprofile/${ClusterName}/${FargateProfileName}/${UUID}
|
|
identityproviderconfig |
arn:${Partition}:eks:${Region}:${Account}:identityproviderconfig/${ClusterName}/${IdentityProviderType}/${IdentityProviderConfigName}/${UUID}
|
|
eks-anywhere-subscription |
arn:${Partition}:eks:${Region}:${Account}:eks-anywhere-subscription/${UUID}
|
|
podidentityassociation |
arn:${Partition}:eks:${Region}:${Account}:podidentityassociation/${ClusterName}/${UUID}
|
|
access-entry |
arn:${Partition}:eks:${Region}:${Account}:access-entry/${ClusterName}/${IamIdentityType}/${IamIdentityAccountID}/${IamIdentityName}/${UUID}
|
|
access-policy |
arn:${Partition}:eks::aws:cluster-access-policy/${AccessPolicyName}
|
Condition keys for Amazon Elastic Kubernetes Service
Amazon Elastic Kubernetes Service defines the following condition keys that can be used in the Condition
element of an IAM policy. You can use these keys to further refine the conditions under which the policy statement applies. For details about the columns in the following table, see Condition keys table.
To view the global condition keys that are available to all services, see Available global condition keys.
Condition keys | Description | Type |
---|---|---|
aws:RequestTag/${TagKey} | Filters access by a key that is present in the request the user makes to the EKS service | String |
aws:ResourceTag/${TagKey} | Filters access by a tag key and value pair | String |
aws:TagKeys | Filters access by the list of all the tag key names present in the request the user makes to the EKS service | ArrayOfString |
eks:accessEntryType | Filters access by the access entry type present in the access entry requests the user makes to the EKS service | String |
eks:accessScope | Filters access by the accessScope present in the associate / disassociate access policy requests the user makes to the EKS service | String |
eks:authenticationMode | Filters access by the authenticationMode present in the create / update cluster request | String |
eks:bootstrapClusterCreatorAdminPermissions | Filters access by the bootstrapClusterCreatorAdminPermissions present in the create cluster request | Bool |
eks:bootstrapSelfManagedAddons | Filters access by the bootstrapSelfManagedAddons present in the create cluster request | Bool |
eks:clientId | Filters access by the clientId present in the associateIdentityProviderConfig request the user makes to the EKS service | String |
eks:clusterName | Filters access by the clusterName present in the access entry requests the user makes to the EKS service | String |
eks:issuerUrl | Filters access by the issuerUrl present in the associateIdentityProviderConfig request the user makes to the EKS service | String |
eks:kubernetesGroups | Filters access by the kubernetesGroups present in the access entry requests the user makes to the EKS service | ArrayOfString |
eks:namespaces | Filters access by the namespaces present in the associate / disassociate access policy requests the user makes to the EKS service | ArrayOfString |
eks:policyArn | Filters access by the policyArn present in the access entry requests the user makes to the EKS service | ARN |
eks:principalArn | Filters access by the principalArn present in the access entry requests requests the user makes to the EKS service | ARN |
eks:supportType | Filters access by the supportType present in the create / update cluster request | String |
eks:username | Filters access by the Kubernetes username present in the access entry requests the user makes to the EKS service | String |