AWS IAM Show only untagged EC2 instances

前端 未结 2 1531
刺人心
刺人心 2021-01-26 07:22

I\'m attempting to introduce a guest IAM policy to restrict the access to the EC2 instances. I\'m trying to reach that, the guest policy shows only that instances,

2条回答
  •  一向
    一向 (楼主)
    2021-01-26 08:07

    The use case to control which EC2 resources in same region IAM users can see based on tag (by other means) is not possible since all EC2 describe API calls do not support resource level permission.

    Hence we cannot use EC2 conditions (except ec2:Region) with "ec2:Describe*" action. So, either you give permission to see resources or don't.

提交回复
热议问题