AWS S3 access policy with object tags

坚强是说给别人听的谎言 提交于 2019-12-25 01:39:09

问题


Is it possible to create an IAM policy in AWS S3 such that a user or group can access only certain objects in an S3 buckets with a specific tag attached to it and all other objects with no tags or different tags in the bucket are not accessible?


回答1:


You can use s3:ExistingObjectTag/<tag-key>. Using this condition key, you can limit the permission to only on objects that have a specific tag key and value.

For more info: Specifying Conditions in a Policy - Amazon Simple Storage Service



来源:https://stackoverflow.com/questions/56707600/aws-s3-access-policy-with-object-tags

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!