【发布时间】:2020-01-25 00:35:19
【问题描述】:
来自AWS docs:
When to Create an IAM User (Instead of a Role)
...
You want to use the command-line interface (CLI) to work with AWS.
When to Create an IAM Role (Instead of a User)
- You're creating an application that runs on an Amazon Elastic Compute Cloud (Amazon EC2) instance and that application makes requests to AWS.
- You're creating an app that runs on a mobile phone and that makes requests to AWS.
- Users in your company are authenticated in your corporate network and want to be able to use AWS without having to sign in again—that is, you want to allow users to federate into AWS.
但似乎公司在所有事情上都大量使用角色:
- 通过创建具有特定策略的角色并创建自定义策略以应用于组来为组创建角色。
- 担任使用 CLI 的角色。
- 切换角色以使用不同的帐户。
这是过度的还是基于实际工作的解决方案?
【问题讨论】:
标签: amazon-web-services amazon-iam