Last active
September 30, 2024 03:24
-
-
Save alanwill/8572630 to your computer and use it in GitHub Desktop.
AWS IAM policy that allows users to change their own password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version":"2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": ["iam:ChangePassword"], | |
"Resource": "arn:aws:iam::<account-number>:user/${aws:username}" | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": ["iam:GetAccountPasswordPolicy"], | |
"Resource": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment