Actions, resources, and condition keys for Amazon Elastic Container Service for Kubernetes - Service Authorization Reference

# Actions, resources, and condition keys for Amazon Elastic Container Service for Kubernetes

Amazon Elastic Container Service for Kubernetes (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 Container Service for Kubernetes
- Resource types defined by Amazon Elastic Container Service for Kubernetes
- Condition keys for Amazon Elastic Container Service for Kubernetes

## Actions defined by Amazon Elastic Container Service for Kubernetes

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 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 The actions table .

Actions | Description | Access level | Resource types (*required) | Condition keys | Dependent actions
--- | --- | --- | --- | --- | ---
AccessKubernetesApi [permission only] | Permission to view Kubernetes objects via AWS EKS console | Read | cluster* |  |
CreateAddon | Creates an Amazon EKS add-on. | Write | cluster* |  |
| aws:RequestTag/${TagKey} aws:TagKeys |
CreateCluster | Creates an Amazon EKS cluster. | Write |  | aws:RequestTag/${TagKey} aws:TagKeys |
CreateFargateProfile | Creates an AWS Fargate profile. | Write | cluster* |  |
| aws:RequestTag/${TagKey} aws:TagKeys |
CreateNodegroup | Creates an Amazon EKS Nodegroup. | Write | cluster* |  |
| aws:RequestTag/${TagKey} aws:TagKeys |
DeleteAddon | Deletes an Amazon EKS add-on. | Write | addon* |  |
DeleteCluster | Deletes an Amazon EKS cluster. | Write | cluster* |  |
DeleteFargateProfile | Deletes an AWS Fargate profile. | Write | fargateprofile* |  |
DeleteNodegroup | Deletes an Amazon EKS Nodegroup. | Write | nodegroup* |  |
DescribeAddon | Returns descriptive information about an Amazon EKS add-on. | Read | addon* |  |
DescribeAddonVersions | Returns descriptive version information about the add-ons that Amazon EKS Add-ons supports. | Read |  |  |
DescribeCluster | Returns descriptive information about an Amazon EKS cluster. | Read | cluster* |  |
DescribeFargateProfile | Returns descriptive information about an AWS Fargate profile associated with a cluster. | Read | fargateprofile* |  |
DescribeNodegroup | Returns descriptive information about an Amazon EKS nodegroup. | Read | nodegroup* |  |
DescribeUpdate | Describes a given update for a given Amazon EKS cluster/nodegroup/add-on (in the specified or default region). | Read | cluster* |  |
addon |  |
nodegroup |  |
ListAddons | Lists the Amazon EKS add-ons in your AWS account (in the specified or default region) for a given cluster. | List | cluster* |  |
ListClusters | Lists the Amazon EKS clusters in your AWS account (in the specified or default region). | List |  |  |
ListFargateProfiles | Lists the AWS Fargate profiles in your AWS account (in the specified or default region) associated with a given cluster. | List | cluster* |  |
ListNodegroups | Lists the Amazon EKS nodegroups in your AWS account (in the specified or default region) attached to given cluster. | List | cluster* |  |
ListTagsForResource | List tags for the specified resource. | List | addon |  |
cluster |  |
fargateprofile |  |
nodegroup |  |
ListUpdates | Lists the updates for a given Amazon EKS cluster/nodegroup/add-on (in the specified or default region). | List | cluster* |  |
addon |  |
nodegroup |  |
TagResource | Tags the specified resource. | Tagging | addon |  |
cluster |  |
fargateprofile |  |
nodegroup |  |
| aws:RequestTag/${TagKey} aws:TagKeys |
UntagResource | Untags the specified resource. | Tagging | addon |  |
cluster |  |
fargateprofile |  |
nodegroup |  |
| aws:TagKeys |
UpdateAddon | Update Amazon EKS add-on configurations, such as the VPC-CNI version. | Write | addon* |  |
UpdateClusterConfig | Update Amazon EKS cluster configurations (eg: API server endpoint access). | Write | cluster* |  |
UpdateClusterVersion | Update the Kubernetes version of an Amazon EKS cluster. | Write | cluster* |  |
UpdateNodegroupConfig | Update Amazon EKS nodegroup configurations (eg: min/max/desired capacity or labels). | Write | nodegroup* |  |
UpdateNodegroupVersion | Update the Kubernetes version of an Amazon EKS nodegroup. | Write | nodegroup* |  |

## Resource types defined by Amazon Elastic Container Service for Kubernetes

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 The resource types table .

Resource types | ARN | Condition keys
--- | --- | ---
cluster | `arn:$ { Partition}:eks:$ { Region}:$ { Account}:cluster/$ { ClusterName}` | aws:ResourceTag/${TagKey}
nodegroup | `arn:$ { Partition}:eks:$ { Region}:$ { Account}:nodegroup/$ { ClusterName}/$ { NodegroupName}/$ { UUID}` | aws:ResourceTag/${TagKey}
addon | `arn:$ { Partition}:eks:$ { Region}:$ { Account}:addon/$ { ClusterName}/$ { AddonName}/$ { UUID}` | aws:ResourceTag/${TagKey}
fargateprofile | `arn:$ { Partition}:eks:$ { Region}:$ { Account}:fargateprofile/$ { ClusterName}/$ { FargateProfileName}/$ { UUID}` | aws:ResourceTag/${TagKey}

## Condition keys for Amazon Elastic Container Service for Kubernetes

Amazon Elastic Container Service for Kubernetes 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 The 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. | String

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.