AWS Security ChangesHomeSearch

AWS code-library medium security documentation change

Service: code-library · 2025-06-28 · Security-related medium

File: code-library/latest/ug/iam_example_iam_GetAccessKeyLastUsed_section.md

Summary

Added PowerShell V5 example for access key usage monitoring

Security assessment

Helps identify stale or compromised access keys by showing last usage details, directly supporting key rotation and incident response security practices.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_GetAccessKeyLastUsed_section.md b/code-library/latest/ug/iam_example_iam_GetAccessKeyLastUsed_section.md
index 147ad0f9f..96ae18bd1 100644
--- a//code-library/latest/ug/iam_example_iam_GetAccessKeyLastUsed_section.md
+++ b//code-library/latest/ug/iam_example_iam_GetAccessKeyLastUsed_section.md
@@ -197,0 +198,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: Returns the owning user name and last-usage information for the supplied access key.**
+    
+    
+    Get-IAMAccessKeyLastUsed -AccessKeyId ABCDEXAMPLE
+    
+
+  * For API details, see [GetAccessKeyLastUsed](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+