AWS Cheat Sheet - AWS Identity and Access Management (IAM) - Tutorials Dojo
AWS Cheat Sheet - AWS Identity and Access Management (IAM) - Tutorials Dojo
Home Courses Intro to Cloud Computing AWS Cheat Sheets Other Cheat Sheets
Home » Others » AWS Cheat Sheet – AWS Identity and Access Management ( IAM )
resources.
AWS account root user is a single sign-in identity that has complete access to all AWS
Features
You can grant other people permission to administer and use resources in your
You can grant di erent permissions to di erent people for di erent resources.
You can use IAM features to securely provide credentials for applications that run
on EC2 instances which provide permissions for your applications to access other
AWS resources.
You can add two-factor authentication to your account and to individual users for
extra security.
You can allow users to use identity federation to get temporary access to your
AWS account.
https://tutorialsdojo.com/aws-cheat-sheet-aws-identity-and-access-management-iam/ 1/14
3/9/2021 AWS Cheat Sheet - AWS Identity and Access Management ( IAM ) - Tutorials Dojo
You receive AWS CloudTrail log records that include information about IAM
You use an access key (an access key ID and secret access key) to make
programmatic requests to AWS. An Access Key ID and Secret Access Key can only
IAM has been validated as being compliant with Payment Card Industry (PCI) Data
IAM is eventually consistent. IAM achieves high availability by replicating data across
IAM and AWS Security Token Service (STS) are o ered at no additional charge.
https://My_AWS_Account_ID.signin.aws.amazon.com/console/
You can use IAM tags to add custom attributes to an IAM user or role using a tag
key–value pair.
Infrastructure Elements
Principal
resource. Users, roles, federated users, and applications are all AWS
principals.
Request
When a principal tries to use the AWS Management Console, the AWS API, or
wants to perform.
Principal – the user, role, federated user, or application that sent the
request. Information about the principal includes the policies that are
Authentication
To authenticate from the console as a user, you must sign in with your user
To authenticate from the API or AWS CLI, you must provide your access key
Authorization
AWS uses values from the request context to check for policies that apply to
the request. It then uses the policies to determine whether to allow or deny
the request.
boundaries.
To provide your users with permissions to access the AWS resources in their
Actions or Operations
Operations are de ned by a service, and include things that you can do to a
Resource
An object that exists within a service. The service de nes a set of actions that
Users
IAM Users
Instead of sharing your root user credentials with others, you can create
individual IAM users within your account that correspond to users in your
organization. IAM users are not separate accounts; they are users within
your account.
Each user can have its own password for access to the AWS Management
Console. You can also create an individual access key for each user so that
the user can make programmatic requests to work with resources in your
account.
Federated Users
https://tutorialsdojo.com/aws-cheat-sheet-aws-identity-and-access-management-iam/ 4/14
3/9/2021 AWS Cheat Sheet - AWS Identity and Access Management ( IAM ) - Tutorials Dojo
IAM Groups
You can organize IAM users into IAM groups and attach access control
policies to a group.
Groups do not have security credentials, and cannot access web services
directly.
IAM Role
for a speci c task. A role can be assigned to a federated user who signs in by
AWS service role is a role that a service assumes to perform actions in your
account on your behalf. This service role must include all the permissions
required for the service to access the AWS resources that it needs.
AWS service role for an EC2 instance is a special type of service role
launched.
service and include all the permissions that the service requires to call
An instance pro le is a container for an IAM role that you can use to pass
Users or groups can have multiple policies attached to them that grant di erent
permissions.
Policies
The IAM console includes policy summary tables that describe the access level,
resources, and conditions that are allowed or denied for each service in a policy.
The policy summary table includes a list of services. Choose a service there to see
This summary table includes a list of the actions and associated permissions for
the chosen service. You can choose an action from that table to view the action
summary.
Identity-Based Policies
Managed policies are standalone policies that you can attach to multiple
Inline policies are policies that you create and manage and that are
Resource-based Policies
bucket.
Create and provide trusted users with temporary security credentials that can
Temporary security credentials are short-term and are not stored with the user
but are generated dynamically and provided to the user when requested.
https://sts.amazonaws.com.
AssumeRole – Returns a set of temporary security credentials that you can use to
access AWS resources that you might not normally have access to. These
temporary credentials consist of an access key ID, a secret access key, and a
security token. Typically, you use AssumeRole within your account or for cross-
account access.
You can include multi-factor authentication (MFA) information when you call
AssumeRole. This is useful for cross-account scenarios to ensure that the user
that assumes the role has been authenticated with an AWS MFA device.
https://tutorialsdojo.com/aws-cheat-sheet-aws-identity-and-access-management-iam/ 7/14
3/9/2021 AWS Cheat Sheet - AWS Identity and Access Management ( IAM ) - Tutorials Dojo
who have been authenticated via a SAML authentication response. This allows you
to link your enterprise identity store or directory to role-based AWS access without
users who have been authenticated in a mobile or web application with a web
identity provider. Example providers include Amazon Cognito, Login with Amazon,
of an access key ID, a secret access key, and a security token) for a federated user.
You must call the GetFederationToken operation using the long-term security
corporate network.
IAM user. The credentials consist of an access key ID, a secret access key, and a
security token. You must call the GetSessionToken operation using the long-term
security credentials of an IAM user. Typically, you use GetSessionToken if you want
Best Practices
Limits
Virtual MFA devices (assigned or unassigned) in an AWS Equal to the user quota for the
account account
Question 1
You recently created a brand new IAM User with a default setting using AWS CLI. This is
intended to be used to send API requests to your S3, DynamoDB, Lambda, and other AWS
resources of your cloud infrastructure. Which of the following must be done to allow the user
1. Do nothing as the IAM User is already capable of sending API calls to your AWS
resources.
4. Create a set of Access Keys for the user and attach the necessary permissions.
Question 2
You are working as a Solutions Architect for a leading insurance rm where you are instructed
to provision access to certain IAM users which performs application development tasks in
your VPC. The access should allow the users to create and con gure various AWS resources
such as deploying Windows EC2 servers. In addition, the users should be able to see the
permissions in AWS Organizations to view the information about the user’s organization,
https://tutorialsdojo.com/aws-cheat-sheet-aws-identity-and-access-management-iam/ 11/14
3/9/2021 AWS Cheat Sheet - AWS Identity and Access Management ( IAM ) - Tutorials Dojo
Which of the following should you implement to follow the standard security advice of
3. Create a new IAM role and attach the SystemAdministrator AWS managed policy to it.
4. Create a new IAM role and attach the AdministratorAccess AWS managed policy to it.
For more AWS practice exam questions with detailed explanations, check this out:
XX
1. Step by Step: Fault-tolerant, Scalable and Secure AWS Stack by Savitra Sirohi
Sources:
https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html
https://aws.amazon.com/iam/faqs/
AWS, Azure, and GCP Certi cations are consistently among the top-paying IT certi cations in the
world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year
Follow us on LinkedIn, Facebook, or join our Slack study group. More importantly, answer as
many practice exams as you can to help increase your chances of passing your certi cation exams
https://tutorialsdojo.com/aws-cheat-sheet-aws-identity-and-access-management-iam/ 12/14
3/9/2021 AWS Cheat Sheet - AWS Identity and Access Management ( IAM ) - Tutorials Dojo
Sign up to our newsletter and get a FREE copy of our Introduction to Cloud
Computing eBook.
Name:
Email:
Submit
Related Posts
Azure Active Directory (AD) vs Azure Functions vs Logic Apps Azure Container I
Role-Based Access Control vs Event Grid (ACI) vs Azure Kub
(RBAC) August 22nd, 2020 | 0 Comments Service (AKS)
February 21st, 2021 | 0 August 22nd, 2020 |
Comments
https://tutorialsdojo.com/aws-cheat-sheet-aws-identity-and-access-management-iam/ 13/14
3/9/2021 AWS Cheat Sheet - AWS Identity and Access Management ( IAM ) - Tutorials Dojo
Tutorials Dojo
Proudly Made in the Philippines
Founded in Manila, Philippines, Tutorials Dojo is your one-stop learning portal for technology-
related topics, empowering you to upgrade your skills and your career.
portal.tutorialsdojo.com
support@tutorialsdojo.com
AWS eBooks
Azure Reviewers
Join us on Slack!
Meet other IT professionals in our Slack Community. Communicate your IT certi cation
exam-related questions (AWS, Azure, GCP) with other members and our technical team.
Follow us on:
https://tutorialsdojo.com/aws-cheat-sheet-aws-identity-and-access-management-iam/ 14/14