AWS code-library documentation change
Summary
Added PowerShell V5 example for deactivating IAM user access keys
Security assessment
Demonstrates security best practice of disabling unused access keys but doesn't address a specific vulnerability
Diff
diff --git a/code-library/latest/ug/iam_example_iam_UpdateAccessKey_section.md b/code-library/latest/ug/iam_example_iam_UpdateAccessKey_section.md index 1876df4dd..94ae4e7e2 100644 --- a//code-library/latest/ug/iam_example_iam_UpdateAccessKey_section.md +++ b//code-library/latest/ug/iam_example_iam_UpdateAccessKey_section.md @@ -414,0 +415,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example changes the status of the access key`AKIAIOSFODNN7EXAMPLE` for the IAM user named `Bob` to `Inactive`.** + + + Update-IAMAccessKey -UserName Bob -AccessKeyId AKIAIOSFODNN7EXAMPLE -Status Inactive + + + * For API details, see [UpdateAccessKey](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +