Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
我为 AWS 资源添加了标签,但是我的 IAM 策略不起作用。哪些 AWS 服务支持基于授权的标签?
1 分钟阅读
0
我的资源标记了正确的标签键和值,但是我的 AWS Identity and Access Management (IAM) 策略不会评估资源上的标签。
简短描述
IAM 策略可以使用全局条件键 aws:ResourceTag/tag-key 根据资源的标签键和值来控制访问权限。并非所有 AWS 服务都支持标签授权。可以标记某些 AWS 资源,例如 AWS Lambda 函数和 Amazon Simple Queue Service (Amazon SQS) 队列。但是,不能在 IAM 策略中用这些标签控制对资源的访问。有关支持基于标签的授权的 AWS 服务列表,请参阅使用 IAM 的 AWS 服务。