AWS Security ChangesHomeSearch

AWS cli documentation change

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

File: cli/latest/reference/eks/list-associated-access-policies.md

Summary

Added examples section demonstrating usage of list-associated-access-policies command, including sample CLI command and output format

Security assessment

The change adds documentation about querying access policies associated with EKS access entries, which relates to security controls but does not indicate a specific vulnerability fix. It improves visibility into access management configurations.

Diff

diff --git a/cli/latest/reference/eks/list-associated-access-policies.md b/cli/latest/reference/eks/list-associated-access-policies.md
index 7f75b6d3a..3e528a40e 100644
--- a//cli/latest/reference/eks/list-associated-access-policies.md
+++ b//cli/latest/reference/eks/list-associated-access-policies.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
@@ -220,0 +222,40 @@ 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_ .
+
+**To list the access policies associated with an access entry**
+
+The following `list-associated-access-policies` example returns the list of access policies associated with an access entry in the EKS cluster.
+    
+    
+    aws eks list-associated-access-policies \
+        --cluster-name eks-customer \
+        --principal-arn arn:aws:iam::111122223333:role/Admin
+    
+
+Output:
+    
+    
+    {
+        "associatedAccessPolicies": [
+            {
+                "policyArn": "arn:aws:eks::aws:cluster-access-policy/AmazonEKSAdminPolicy",
+                "accessScope": {
+                    "type": "cluster",
+                    "namespaces": []
+                },
+                "associatedAt": "2025-05-24T17:26:22.935000-05:00",
+                "modifiedAt": "2025-05-24T17:26:22.935000-05:00"
+            }
+        ],
+        "clusterName": "eks-customer",
+        "principalArn": "arn:aws:iam::111122223333:role/Admin"
+    }
+    
+
+For more information, see [Grant IAM users access to Kubernetes with EKS access entries](https://docs.aws.amazon.com/eks/latest/userguide/access-entries.html) in the _Amazon EKS User Guide_.
+
@@ -283 +324 @@ associatedAccessPolicies -> (list)
-  * [AWS CLI 2.27.51 Command Reference](../../index.html) »
+  * [AWS CLI 2.27.54 Command Reference](../../index.html) »