AWS IAM Role vs Group

后端 未结 5 531
面向向阳花
面向向阳花 2020-12-13 01:43

The AWS official site reads role as a collection of permissions and group as a collection of users. But still they look the same to me. You attach policies to groups or role

5条回答
  •  清歌不尽
    2020-12-13 01:57

    Users: End User (Think People).

    Groups: A collection of users under one set of permissions (permission as policy). As per IAM standards we create groups with permissions and then assign user to that group.

    Role: you create roles and assign them to AWS resource (AWS resource example can be a customer, supplier, contractor, employee, an EC2 instance, some external application outside AWS) but remember you can't assign role to user.

    It’s not only users who will login, sometimes applications need access to AWS resources. For example, an EC2 instance might need to access one or more S3 buckets. Then, an IAM role needs to be created and attached to the EC2 instance. That role can be re-used by different EC2 instances.

    Remember : Groups are for living. Roles are for non-living.

提交回复
热议问题