Skip to content

Instantly share code, notes, and snippets.

@alanwill
Last active September 30, 2024 03:24
Show Gist options
  • Save alanwill/8572630 to your computer and use it in GitHub Desktop.
Save alanwill/8572630 to your computer and use it in GitHub Desktop.
AWS IAM policy that allows users to change their own password
{
"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