-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow users to change own password in iam-group-with-policies m…
…odule (#435)
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,9 @@ data "aws_iam_policy_document" "iam_self_management" { | |
|
||
actions = [ | ||
"iam:ChangePassword", | ||
"iam:GetUser" | ||
"iam:GetLoginProfile", | ||
"iam:GetUser", | ||
"iam:UpdateLoginProfile" | ||
] | ||
|
||
resources = [ | ||
|
@@ -153,10 +155,10 @@ data "aws_iam_policy_document" "iam_self_management" { | |
sid = "DenyAllExceptListedIfNoMFA" | ||
effect = "Deny" | ||
not_actions = [ | ||
"iam:ChangePassword", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wonko
Contributor
|
||
"iam:CreateVirtualMFADevice", | ||
"iam:EnableMFADevice", | ||
"iam:GetUser", | ||
"iam:GetMFADevice", | ||
"iam:ListMFADevices", | ||
"iam:ListVirtualMFADevices", | ||
"iam:ResyncMFADevice", | ||
|
This does the opposite of what it's supposed to do, so this broke password changing.