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 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.
The Resource types column indicates whether each action supports resource-level permissions. If there is no value for this column, you must specify all resources ("*") 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. Required resources are indicated in the table with an asterisk (*). If you specify a resource-level permission ARN in a statement using this action, then it must be of this type. Some actions support multiple resource types. If the resource type is optional (not indicated as required), then you can choose to use one but not the other.
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 Amazon EKS console | Read | |||
AssociateEncryptionConfig | Grants permission to associate encryption configuration to a cluster | Write | |||
AssociateIdentityProviderConfig | Grants permission to associate an identity provider configuration to a cluster | Write | |||
CreateAddon | Grants permission to create an Amazon EKS add-on | Write | |||
CreateCluster | Grants permission to create an Amazon EKS cluster | Write | |||
CreateFargateProfile | Grants permission to create an Amazon Fargate profile | Write | |||
CreateNodegroup | Grants permission to create an Amazon EKS Nodegroup | Write | |||
DeleteAddon | Grants permission to delete an Amazon EKS add-on | Write | |||
DeleteCluster | Grants permission to delete an Amazon EKS cluster | Write | |||
DeleteFargateProfile | Grants permission to delete an Amazon Fargate profile | Write | |||
DeleteNodegroup | Grants permission to delete an Amazon EKS Nodegroup | Write | |||
DeregisterCluster | Grants permission to deregister an External cluster | Write | |||
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 | |||
DescribeFargateProfile | Grants permission to retrieve descriptive information about an Amazon Fargate profile associated with a cluster | Read | |||
DescribeIdentityProviderConfig | Grants permission to retrieve descriptive information about an Idp config associated with a cluster | Read | |||
DescribeNodegroup | Grants permission to retrieve descriptive information about an Amazon EKS nodegroup | 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 | |||
DisassociateIdentityProviderConfig | Grants permission to delete an asssociated Idp config | Write | |||
ListAddons | 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 | |||
ListClusters | Grants permission to list the Amazon EKS clusters in your Amazon Web Services account (in the specified or default region) | List | |||
ListFargateProfiles | 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 | |||
ListIdentityProviderConfigs | 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 | |||
ListNodegroups | 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 | |||
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 | |||
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 | |||
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 |
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 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}
|
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:clientId | Filters access by the clientId present in the associateIdentityProviderConfig request 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 |