我有这个政策应该阻止用户从 AWS 的任何资源中删除标签。但标签仍在从资源中删除。
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ec2:Delete*",
"s3:Delete*",
"s3:ReplicateTags",
"iam:Untag*",
"tag:UntagResources"
],
"Effect": "Deny",
"Resource": "*"
},
{
"Action": [
"s3:Create*",
"s3:Describe*",
"s3:Get*",
"s3:List*",
"s3:Put*",
"s3:Update*",
"s3:Replicate*",
"s3:RestoreObject",
"s3:ObjectOwnerOverrideToBucketOwner"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"ec2:Create*",
"ec2:Describe*",
"ec2:Get*",
"ec2:Modify*",
"ec2:StartInstances",
"ec2:StopInstances"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"iam:Tag*",
"tag:TagResources",
"tag:GetResources"
],
"Effect": "Allow",
"Resource": "*"
},
{
"Action": [
"iam:Untag*",
"tag:UntagResources"
],
"Effect": "Deny",
"Resource": "*"
}
]
}
由于我是 AWS 的新手,所以我不知道出了什么问题。其他权限工作正常。只是取消标记不起作用。如何拒绝取消标记资源?提前致谢。
我怎么做tag:UntagResources
?