-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66da6a8
commit 4028890
Showing
3 changed files
with
5 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"infrastructure": minor | ||
--- | ||
|
||
Removed DGS developers IAM users |
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
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 |
---|---|---|
@@ -1,19 +0,0 @@ | ||
resource "aws_iam_user" "mauro_dandrea" { | ||
# This force the deletion of the user and its login profile | ||
# because we manually give access to the console | ||
force_destroy = true | ||
|
||
name = "[email protected]" | ||
|
||
tags = { | ||
Company = "DGS" | ||
} | ||
} | ||
|
||
# Allow IAM User to change the password | ||
# Attach IAM User policy because with IAM Group policy we have the following error | ||
# Error: deleting IAM User DeleteConflict: Cannot delete entity, must delete login profile first. | ||
resource "aws_iam_user_policy_attachment" "change_password" { | ||
user = aws_iam_user.mauro_dandrea.name | ||
policy_arn = "arn:aws:iam::aws:policy/IAMUserChangePassword" | ||
} | ||