{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyIAMUser",
"Effect": "Deny",
"Action": [
"iam:CreateUser",
"iam:DeleteUser",
"iam:UpdateUser",
"iam:CreateLoginProfile",
"iam:DeleteLoginProfile",
"iam:UpdateLoginProfile"
],
"Resource": "*"
}
]
}
This has been setup, making the
mgmtaccount the root of the Organization, and creating 2 OU (Organizational Units) forprodandnonprodand placing the accounts with the same alias there.However, there are more things we can take advantage of:
rootaccount use: probably not, because we might lock ourselves out.eu-west-1