Introduction to AWS IAM
Identity and access management for users, roles and permissions.
- 4 lessons
- Module quiz
Every request made to AWS, whether by a person in the console, a script using the CLI or an application using an SDK, must answer two questions: who is making the request, and are they allowed to do it? The first question is authentication and the second is authorisation.
AWS Identity and Access Management (IAM) answers both for every AWS account. It defines identities, namely users, groups and roles, and the policies that allow or deny actions on resources. A role is an identity that applications and services assume to receive temporary credentials, which is why roles are preferred over the long-term access keys of users. IAM is a global service, not tied to a Region, and it is free.
Where IAM fits
IAM underlies every other service on the exam, and permission problems are among the most common causes of errors that developers must diagnose. One rule governs how policies combine: access is denied by default, an explicit allow grants it, and an explicit deny in any applicable policy always overrides any allow. Applications running on AWS should always obtain credentials from a role rather than from access keys stored in code or configuration.
How this module is organised
Understanding IAM Identities, Credentials and Policy Types introduces identities, credentials, the types of policy and ARNs. Writing IAM Policies and Tracing How AWS Evaluates Them explains the types of policy and how AWS decides whether a request is allowed. Giving Applications Access to AWS with IAM Roles explains how applications on each compute service obtain credentials, how SDKs find them, and how access works across accounts. Isolating Tenant Data in Multi-Tenant Applications applies these ideas to applications that serve many customers from shared resources.
- Understanding IAM Identities, Credentials and Policy Types Lesson 1
- Writing IAM Policies and Tracing How AWS Evaluates Them Lesson 2
- Giving Applications Access to AWS with IAM Roles Lesson 3
- Isolating Tenant Data in Multi-Tenant Applications Lesson 4
- Practise and review
- Test your knowledge 10 questions