AWS code-library documentation change
Summary
Added PowerShell V5 example for IAM user password change
Security assessment
Demonstrates password management security practice but does not address a specific security incident.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ChangePassword_section.md b/code-library/latest/ug/iam_example_iam_ChangePassword_section.md index dd65d4094..e51968b8a 100644 --- a//code-library/latest/ug/iam_example_iam_ChangePassword_section.md +++ b//code-library/latest/ug/iam_example_iam_ChangePassword_section.md @@ -68,0 +69,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This command changes the password for the user that is running the command. This command can be called by IAM users only. If this command is called when you are signed-in with AWS account (root) credentials, the command returns an`InvalidUserType` error.** + + + Edit-IAMPassword -OldPassword "MyOldP@ssw0rd" -NewPassword "MyNewP@ssw0rd" + + + * For API details, see [ChangePassword](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +