AWS Identity and Access Management (IAM) | IAM Role Management Flashcards
Can I set usage quotas on IAM users?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
No. All limits are on the AWS account as a whole. For example, if your AWS account has a limit of 20 Amazon EC2 instances, IAM users with EC2 permissions can start instances up to the limit. You cannot limit what an individual user can do.
What is an IAM role?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
An IAM role is an IAM entity that defines a set of permissions for making AWS service requests. IAM roles are not associated with a specific user or group. Instead, trusted entities assume roles, such as IAM users, applications, or AWS services such as EC2.
What problems do IAM roles solve?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
IAM roles allow you to delegate access with defined permissions to trusted entities without having to share long-term access keys. You can use IAM roles to delegate access to IAM users managed within your account, to IAM users under a different AWS account, or to an AWS service such as EC2.
How do I get started with IAM roles?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
You create a role in a way similar to how you create a user—name the role and attach a policy to it. For details, see Creating IAM Roles.
How do I assume an IAM role?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
You assume an IAM role by calling the AWS Security Token Service (STS) AssumeRole APIs (in other words, AssumeRole, AssumeRoleWithWebIdentity, and AssumeRoleWithSAML). These APIs return a set of temporary security credentials that applications can then use to sign requests to AWS service APIs.
How many IAM roles can I assume?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
There is no limit to the number of IAM roles you can assume, but you can only act as one IAM role when making requests to AWS services.
Who can use IAM roles?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
Any AWS customer can use IAM roles.
How much do IAM roles cost?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
IAM roles are free of charge. You will continue to pay for any resources a role in your AWS account consumes.
How are IAM roles managed?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
You can create and manage IAM roles via the IAM APIs, AWS CLI, or IAM console, which gives you a point-and-click, web-based interface.
What is the difference between an IAM role and an IAM user?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
An IAM user has permanent long-term credentials and is used to directly interact with AWS services. An IAM role does not have any credentials and cannot make direct requests to AWS services. IAM roles are meant to be assumed by authorized entities, such as IAM users, applications, or an AWS service such as EC2.
When should I use an IAM user, IAM group, or IAM role?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
An IAM user has permanent long-term credentials and is used to directly interact with AWS services. An IAM group is primarily a management convenience to manage the same set of permissions for a set of IAM users. An IAM role is an AWS Identity and Access Management (IAM) entity with permissions to make AWS service requests. IAM roles cannot make direct requests to AWS services; they are meant to be assumed by authorized entities, such as IAM users, applications, or AWS services such as EC2. Use IAM roles to delegate access within or between AWS accounts.
Can I add an IAM role to an IAM group?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
Not at this time.
How many policies can I attach to an IAM role?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
For inline policies: You can add as many inline policies as you want to a user, role, or group, but the total aggregate policy size (the sum size of all inline policies) per entity cannot exceed the following limits:
User policy size cannot exceed 2,048 characters.
Role policy size cannot exceed 10,240 characters.
Group policy size cannot exceed 5,120 characters.
For managed policies: You can add up to 10 managed policies to a user, role, or group. The size of each managed policy cannot exceed 6,144 characters.
How many IAM roles can I create?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
You are limited to 1,000 IAM roles under your AWS account. If you need more roles, submit the IAM limit increase request form with your use case, and we will consider your request.
To which services can my application make requests?
IAM Role Management
AWS Identity and Access Management (IAM) | Security, Identity & Compliance
Your application can make requests to all AWS services that support role sessions.