使用SCP限制根用户的行为
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Deny-Root-Actions",
"Effect": "Deny",
"Action": [
"*"
],
"Resource": [
"*"
],
"Condition": {
"ArnLike": {
"aws:PrincipalArn": [
"arn:aws:iam::*:root"
]
}
}
}
]
}最后更新于