Actions, resources, and condition keys for Amazon Elastic Kubernetes Service
Amazon Elastic Kubernetes Service (service prefix: eks) provides the following
service-specific operations, resources, actions, and condition 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.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon Elastic Kubernetes Service
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
AssociateAccessPolicy |
Write |
|||
|
AssociateEncryptionConfig |
Write |
|||
|
AssociateIdentityProviderConfig |
Write |
|||
Tagging, Write |
||||
|
CancelUpdate |
Write |
|||
|
CreateAccessEntry |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
ec2.amazonaws.com |
Write |
||
|
CreateAddon |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
eks.amazonaws.com |
Write |
||
|
CreateCapability |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
eks.amazonaws.com |
Write |
||
|
CreateCluster |
Write |
|||
Write |
||||
Tagging, Write |
||||
iam:PassedToService |
ec2.amazonaws.com, eks.amazonaws.com |
Write |
||
|
CreateEksAnywhereSubscription |
Write |
|||
Tagging, Write |
||||
|
CreateFargateProfile |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
eks.amazonaws.com |
Write |
||
|
CreateNodegroup |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
eks.amazonaws.com |
Write |
||
|
CreatePodIdentityAssociation |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
pods.eks.amazonaws.com |
Write |
||
|
DeleteAccessEntry |
Write |
|||
|
DeleteAddon |
Write |
|||
|
DeleteCapability |
Write |
|||
|
DeleteCluster |
Write |
|||
|
DeleteEksAnywhereSubscription |
Write |
|||
|
DeleteFargateProfile |
Write |
|||
|
DeleteNodegroup |
Write |
|||
|
DeletePodIdentityAssociation |
Write |
|||
|
DeregisterCluster |
Write |
|||
|
DescribeAccessEntry |
Read |
|||
|
DescribeAddon |
Read |
|||
|
DescribeAddonConfiguration |
Read |
|||
|
DescribeAddonVersions |
Read |
|||
|
DescribeCapability |
Read |
|||
|
DescribeCluster |
Read |
|||
|
DescribeClusterVersions |
Read |
|||
|
DescribeEksAnywhereSubscription |
Read |
|||
|
DescribeFargateProfile |
Read |
|||
|
DescribeIdentityProviderConfig |
Read |
|||
|
DescribeInsight |
Read |
|||
|
DescribeInsightsRefresh |
Read |
|||
|
DescribeNodegroup |
Read |
|||
|
DescribePodIdentityAssociation |
Read |
|||
|
DescribeUpdate |
Read |
|||
|
DisassociateAccessPolicy |
Write |
|||
|
DisassociateIdentityProviderConfig |
Write |
|||
|
ListAccessEntries |
List |
|||
|
ListAccessPolicies |
List |
|||
|
ListAddons |
List |
|||
|
ListAssociatedAccessPolicies |
List |
|||
|
ListCapabilities |
List |
|||
|
ListClusters |
List |
|||
|
ListEksAnywhereSubscriptions |
List |
|||
|
ListFargateProfiles |
List |
|||
|
ListIdentityProviderConfigs |
List |
|||
|
ListInsights |
List |
|||
|
ListNodegroups |
List |
|||
|
ListPodIdentityAssociations |
List |
|||
|
ListTagsForResource |
Read |
|||
|
ListUpdates |
List |
|||
|
RegisterCluster |
Write |
|||
Tagging, Write |
||||
iam:PassedToService |
eks.amazonaws.com |
Write |
||
|
StartInsightsRefresh |
Write |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateAccessEntry |
Write |
|||
|
UpdateAddon |
Write |
|||
iam:PassedToService |
eks.amazonaws.com |
Write |
||
|
UpdateCapability |
Write |
|||
iam:PassedToService |
eks.amazonaws.com |
Write |
||
|
UpdateClusterConfig |
Write |
|||
Write |
||||
iam:PassedToService |
ec2.amazonaws.com, eks.amazonaws.com |
Write |
||
|
UpdateClusterVersion |
Write |
|||
|
UpdateEksAnywhereSubscription |
Write |
|||
|
UpdateNodegroupConfig |
Write |
|||
|
UpdateNodegroupVersion |
Write |
|||
|
UpdatePodIdentityAssociation |
Write |
|||
iam:PassedToService |
pods.eks.amazonaws.com |
Write |
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 Amazon. 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.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to associate an Amazon EKS access policy to an Amazon EKS access entry |
Write |
|||
Grants permission to associate encryption configuration to a cluster |
Write |
|||
Grants permission to associate an identity provider configuration to a cluster |
Write |
|||
Grants permission to cancel an in-progress Kubernetes version update for an Amazon EKS cluster |
Write |
|||
Grants permission to create an Amazon EKS access entry |
Write |
|||
Grants permission to create an Amazon EKS add-on |
Write |
|||
Grants permission to create a capability for an Amazon EKS cluster |
Write |
|||
Grants permission to create an Amazon EKS cluster |
eks:bootstrapClusterCreatorAdminPermissions eks:bootstrapSelfManagedAddons eks:elasticLoadBalancingEnabled |
Write |
||
Grants permission to create an EKS Anywhere subscription |
Write |
|||
Grants permission to create an Amazon Fargate profile |
Write |
|||
Grants permission to create an Amazon EKS Nodegroup |
Write |
|||
Grants permission to create an EKS Pod Identity association |
Write |
|||
Grants permission to delete an Amazon EKS access entry |
Write |
|||
Grants permission to delete an Amazon EKS add-on |
Write |
|||
Grants permission to delete a capability from an Amazon EKS cluster |
Write |
|||
Grants permission to delete an Amazon EKS cluster |
Write |
|||
Grants permission to describe an EKS Anywhere subscription |
Write |
|||
Grants permission to delete an Amazon Fargate profile |
Write |
|||
Grants permission to delete an Amazon EKS Nodegroup |
Write |
|||
Grants permission to delete an EKS Pod Identity association |
Write |
|||
Grants permission to deregister an External cluster |
Write |
|||
Grants permission to describe an Amazon EKS access entry |
Read |
|||
Grants permission to retrieve descriptive information about an Amazon EKS add-on |
Read |
|||
Grants permission to list configuration options about an Amazon EKS add-on |
Read |
|||
Grants permission to retrieve descriptive version information about the add-ons that Amazon EKS Add-ons supports |
Read |
|||
Grants permission to describe a capability for an Amazon EKS cluster |
Read |
|||
Grants permission to retrieve descriptive information about an Amazon EKS cluster |
Read |
|||
Grants permission to retrieve descriptive information about Kubernetes versions that Amazon EKS clusters support |
Read |
|||
Grants permission to describe an EKS Anywhere subscription |
Read |
|||
Grants permission to retrieve descriptive information about an Amazon Fargate profile associated with a cluster |
Read |
|||
Grants permission to retrieve descriptive information about an Idp config associated with a cluster |
Read |
|||
Grants permission to retrieve descriptive information of a detected insight for a specified cluster |
Read |
|||
Grants permission to retrieve the status of the latest on-demand cluster insights refresh operation |
Read |
|||
Grants permission to retrieve descriptive information about an Amazon EKS nodegroup |
Read |
|||
Grants permission to describe an EKS Pod Identity association |
Read |
|||
Grants permission to retrieve a given update for a given Amazon EKS cluster/nodegroup/add-on (in the specified or default region) |
Read |
|||
Grants permission to disassociate an Amazon EKS access policy from an Amazon EKS acces entry |
Write |
|||
Grants permission to delete an asssociated Idp config |
Write |
|||
Grants permission to list all Amazon EKS access entries |
List |
|||
Grants permission to list Amazon EKS access policies |
List |
|||
Grants permission to list the Amazon EKS add-ons in your Amazon Web Services account (in the specified or default region) for a given cluster |
List |
|||
Grants permission to list associated access policy on and Amazon EKS access entry |
List |
|||
Grants permission to list capabilities for an Amazon EKS cluster |
List |
|||
Grants permission to list the Amazon EKS clusters in your Amazon Web Services account (in the specified or default region) |
List |
|||
Grants permission to list dashboard data. The Amazon EKS Dashboard aggregates information about cluster resources across multiple accounts and regions. The dashboard includes information about EC2 Instances and EKS Cluster versions |
Read |
|||
Grants permission to list dashboard resources. The Amazon EKS Dashboard aggregates information about cluster resources across multiple accounts and regions. The dashboard includes information about EC2 Instances and EKS Cluster versions |
Read |
|||
Grants permission to list EKS Anywhere subscriptions |
List |
|||
Grants permission to list the Amazon Fargate profiles in your Amazon Web Services account (in the specified or default region) associated with a given cluster |
List |
|||
Grants permission to list the Idp configs in your Amazon Web Services account (in the specified or default region) associated with a given cluster |
List |
|||
Grants permission to list all detected insights for a specified cluster |
List |
|||
Grants permission to list the Amazon EKS nodegroups in your Amazon Web Services account (in the specified or default region) attached to given cluster |
List |
|||
Grants permission to list EKS Pod Identity associations |
List |
|||
Grants permission to list tags for the specified resource |
Read |
|||
Grants permission to list the updates for a given Amazon EKS cluster/nodegroup/add-on (in the specified or default region) |
List |
|||
Grants permission to register an External cluster |
Write |
|||
Grants permission to initiate an on-demand refresh operation for cluster insights, getting the latest analysis outside of the standard refresh schedule |
Write |
|||
Grants permission to tag the specified resource |
Tagging, Write |
|||
Grants permission to untag the specified resource |
Tagging, Write |
|||
Grants permission to update an Amazon EKS access entry |
Write |
|||
Grants permission to update Amazon EKS add-on configurations, such as the VPC-CNI version |
Write |
|||
Grants permission to update a capability for an Amazon EKS cluster |
Write |
|||
Grants permission to update Amazon EKS cluster configurations (eg: API server endpoint access) |
Write |
|||
Grants permission to update the Kubernetes version of an Amazon EKS cluster |
Write |
|||
Grants permission to update an EKS Anywhere subscription |
Write |
|||
Grants permission to update Amazon EKS nodegroup configurations (eg: min/max/desired capacity or labels) |
Write |
|||
Grants permission to update the Kubernetes version of an Amazon EKS nodegroup |
Write |
|||
Grants permission to update an EKS Pod Identity association |
Write |
Permission-only actions for Amazon Elastic Kubernetes Service
The following actions are defined by Amazon Elastic Kubernetes Service but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to view Kubernetes objects via Amazon EKS console |
Read |
|||
Grants permission to modify Kubernetes objects via Amazon console |
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.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:eks:${Region}:${Account}:access-entry/${ClusterName}/${IamIdentityType}/${IamIdentityAccountID}/${IamIdentityName}/${UUID} |
||
arn:${Partition}:eks::aws:cluster-access-policy/${AccessPolicyName} |
||
arn:${Partition}:eks:${Region}:${Account}:addon/${ClusterName}/${AddonName}/${UUID} |
||
arn:${Partition}:eks:${Region}:${Account}:capability/${ClusterName}/${CapabilityType}/${CapabilityName}/${UUID} |
||
arn:${Partition}:eks:${Region}:${Account}:cluster/${ClusterName} |
||
arn:${Partition}:eks:${Region}:${Account}:dashboard/${DashboardName} |
||
arn:${Partition}:eks:${Region}:${Account}:eks-anywhere-subscription/${UUID} |
||
arn:${Partition}:eks:${Region}:${Account}:fargateprofile/${ClusterName}/${FargateProfileName}/${UUID} |
||
arn:${Partition}:eks:${Region}:${Account}:identityproviderconfig/${ClusterName}/${IdentityProviderType}/${IdentityProviderConfigName}/${UUID} |
||
arn:${Partition}:eks:${Region}:${Account}:nodegroup/${ClusterName}/${NodegroupName}/${UUID} |
||
arn:${Partition}:eks:${Region}:${Account}:podidentityassociation/${ClusterName}/${UUID} |
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.
| Condition keys | Description | Type |
|---|---|---|
Filters access by a key that is present in the request the user makes to the EKS service |
String |
|
Filters access by a tag key and value pair |
String |
|
Filters access by the list of all the tag key names present in the request the user makes to the EKS service |
ArrayOfString |
|
Filters access by the access entry type present in the access entry requests the user makes to the EKS service |
String |
|
Filters access by the accessScope present in the associate / disassociate access policy requests the user makes to the EKS service |
String |
|
Filters access by the authenticationMode present in the create / update cluster request |
String |
|
Filters access by the block storage enabled parameter in the create / update cluster request |
Bool |
|
Filters access by the bootstrapClusterCreatorAdminPermissions present in the create cluster request |
Bool |
|
Filters access by the bootstrapSelfManagedAddons present in the create cluster request |
Bool |
|
Filters access by the clientId present in the associateIdentityProviderConfig request the user makes to the EKS service |
String |
|
Filters access by the clusterName present in the access entry requests the user makes to the EKS service |
String |
|
Filters access by the compute config enabled parameter in the create / update cluster request |
Bool |
|
Filters access by the control plane egress mode specified in the create / update cluster request |
String |
|
Filters access by the control plane scaling tier in the create / update cluster request |
String |
|
Filters access by the deletion protection setting in the create / update cluster request |
Bool |
|
Filters access by the elastic load balancing enabled parameter in the create / update cluster request |
Bool |
|
Filters access by the KMS key ARNs in the create cluster / Associate Encryption Config request |
ArrayOfARN |
|
Filters access by the endpoint private access setting in the create / update cluster request |
Bool |
|
Filters access by the endpoint public access setting in the create / update cluster request |
Bool |
|
Filters access by the issuerUrl present in the associateIdentityProviderConfig request the user makes to the EKS service |
String |
|
Filters access by the kubernetesGroups present in the access entry requests the user makes to the EKS service |
ArrayOfString |
|
Filters access by the Kubernetes version in the create cluster/ update cluster version request |
String |
|
Filters access by the cluster logging enabled and type parameter in the create / update cluster request |
Bool |
|
Filters access by the namespaces present in the associate / disassociate access policy requests the user makes to the EKS service |
ArrayOfString |
|
Filters access by the policyArn present in the access entry requests the user makes to the EKS service |
ARN |
|
Filters access by the principalArn present in the access entry requests requests the user makes to the EKS service |
ARN |
|
Filters access by the supportType present in the create / update cluster request |
String |
|
Filters access by the Kubernetes username present in the access entry requests the user makes to the EKS service |
String |
|
Filters access by the zonal shift enabled setting in the create / update cluster request |
Bool |