AWS Security ChangesHomeSearch

AWS cli documentation change

Service: cli · 2025-07-18 · Documentation low

File: cli/latest/reference/eks/list-pod-identity-associations.md

Summary

Added multiple examples showing how to list Pod Identity associations with different filters

Security assessment

The examples demonstrate auditing of Pod Identity associations, which is a security-related feature for managing Kubernetes pod permissions. No evidence of addressing a specific vulnerability, but enhances documentation of security controls.

Diff

diff --git a/cli/latest/reference/eks/list-pod-identity-associations.md b/cli/latest/reference/eks/list-pod-identity-associations.md
index 53ffc774d..d01809911 100644
--- a//cli/latest/reference/eks/list-pod-identity-associations.md
+++ b//cli/latest/reference/eks/list-pod-identity-associations.md
@@ -15 +15 @@
-  * [AWS CLI 2.27.51 Command Reference](../../index.html) »
+  * [AWS CLI 2.27.54 Command Reference](../../index.html) »
@@ -35,0 +36 @@
+    * Examples
@@ -225,0 +227,78 @@ Disable automatically prompt for CLI input parameters.
+## Examples¶
+
+### Note
+
+To use the following examples, you must have the AWS CLI installed and configured. See the [Getting started guide](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) in the _AWS CLI User Guide_ for more information.
+
+Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See [Using quotation marks with strings](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the _AWS CLI User Guide_ .
+
+**Example 1: To list the Pod Identity associations in an EKS cluster**
+
+The following `list-pod-identity-associations` returns the list of Pod Identity associations associated with the EKS cluster named `eks-customer` in all namespaces and service accounts.
+    
+    
+    aws eks list-pod-identity-associations \
+        --cluster-name eks-customer
+    
+
+Output:
+    
+    
+    {
+        "associations": [
+            {
+                "clusterName": "eks-customer",
+                "namespace": "default",
+                "serviceAccount": "default",
+                "associationArn": "arn:aws:eks:us-west-2:111122223333:podidentityassociation/eks-customer/a-9njjin9gfghecgocd",
+                "associationId": "a-9njjin9gfghecgocd"
+            },
+            {
+                "clusterName": "eks-customer",
+                "namespace": "kube-system",
+                "serviceAccount": "eks-customer",
+                "associationArn": "arn:aws:eks:us-west-2:111122223333:podidentityassociation/eks-customer/a-dvtacahdvjn01ffbc",
+                "associationId": "a-dvtacahdvjn01ffbc"
+            },
+            {
+                "clusterName": "eks-customer",
+                "namespace": "kube-system",
+                "serviceAccount": "coredns",
+                "associationArn": "arn:aws:eks:us-west-2:111122223333:podidentityassociation/eks-customer/a-yrpsdroc4ei7k6xps",
+                "associationId": "a-yrpsdroc4ei7k6xps"
+            }
+        ]
+    }
+    
+
+For more information, see [Learn how EKS Pod Identity grants pods access to AWS services](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html) in the _Amazon EKS User Guide_.
+
+**Example 2: To list the Pod Identity associations in an EKS cluster based on namespace and service account**
+
+The following `list-pod-identity-associations` returns the list of Pod Identity associations in the EKS cluster based on namespace and service account.
+    
+    
+    aws eks list-pod-identity-associations \
+        --cluster-name eks-customer \
+        --namespace kube-system \
+        --service-account eks-customer
+    
+
+Output:
+    
+    
+    {
+        "associations": [
+            {
+                "clusterName": "eks-customer",
+                "namespace": "kube-system",
+                "serviceAccount": "eks-customer",
+                "associationArn": "arn:aws:eks:us-west-2:111122223333:podidentityassociation/eks-customer/a-dvtacahdvjn01ffbc",
+                "associationId": "a-dvtacahdvjn01ffbc"
+            }
+        ]
+    }
+    
+
+For more information, see [Learn how EKS Pod Identity grants pods access to AWS services](https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.html) in the _Amazon EKS User Guide_.
+
@@ -296 +375 @@ nextToken -> (string)
-  * [AWS CLI 2.27.51 Command Reference](../../index.html) »
+  * [AWS CLI 2.27.54 Command Reference](../../index.html) »