- Mastering AWS Security
- Albert Anthony
- 369字
- 2021-07-02 15:44:14
IAM roles
An IAM role is an AWS identity, recommended by AWS over the IAM user for the many benefits it provides when compared to an IAM user. A role is not necessarily associated with one person, application, or a service, instead, it is assumable by any resource that needs it. Moreover, credentials for roles are managed by AWS; these credentials are created dynamically and rotated multiple times in a day. Roles are a very versatile feature of IAM, it can be used for a variety of use cases such as delegating access to services, applications or users that might not need access to your AWS resources regularly or they are outside of your organization and need to access your AWS resources. You can also provide access to resources whose credentials are stored outside of your AWS account such as your corporate directory. You can have the following scenarios making use of roles:
- An IAM user having different AWS account as the role.
- An IAM user having similar AWS account as IAM role.
- AWS web service provided by AWS such as S3.
- Any user outside of your organization that is authenticated by any external identity provider service compatible with Security Assertion Markup Language (SAML) 2.0 or OpenID Connect or Compatible with any custom built identity broker.
Let us look at the steps to create a role using the AWS console. You can create roles by using the AWS CLI, AWS API, or tools for Windows PowerShell:
- Navigate to the IAM dashboard from the AWS console.
- Click on Roles in the navigation pane.
- Click on the Create New Role button. On this screen, you can view, edit, and delete all roles available in your AWS account.
- Select one of the 4 types of IAM roles available as mentioned in the next section.
- Attach policies to this role and click on the Next Step button.
- On the next screen, give a user friendly name to this role and optionally add a description.
- You can also change policies on this screen.
- Click on the Create Role button. It will create this new role.
There are the following four types of IAM roles available in AWS for various use cases:
- Flask Web全棧開發實戰
- 零基礎學C++程序設計
- Android Jetpack開發:原理解析與應用實戰
- 三維圖形化C++趣味編程
- WSO2 Developer’s Guide
- 精通軟件性能測試與LoadRunner實戰(第2版)
- HTML5與CSS3基礎教程(第8版)
- Learning Node.js for .NET Developers
- Apache Camel Developer's Cookbook
- SwiftUI極簡開發
- jQuery Mobile Web Development Essentials(Second Edition)
- 深入理解Kafka:核心設計與實踐原理
- Learning Dynamics NAV Patterns
- Puppet Cookbook(Third Edition)
- 計算機視覺實戰:基于TensorFlow 2