【发布时间】:2018-06-02 00:06:52
【问题描述】:
我正在尝试引入访客 IAM 策略来限制对 EC2 实例的访问。
我正在尝试实现这一点,访客政策仅显示未标记为“部门”或未标记为“部门 = 访客”的实例。
这是我为此制定的政策:
政策:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"ec2:Describe*"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"ec2:ResourceTag/Department": "Guest"
},
"Null": {
"ec2:ResourceTag/Department": "true"
}
}
}
]}
"Department = Guest" 比较运行良好,但资源标签存在检查不起作用。
有没有其他方法可以列出没有“部门”标签的实例?
【问题讨论】:
标签: amazon-web-services amazon-ec2 amazon-iam