2) Identity and Access Management (IAM)

AWS Identity and Access Management (IAM) Overview

  • Identity and Access Management (IAM): A core security management service in AWS that provides centralized control for authentication and authorization across cloud resources.

  • Global Service: IAM is a global service operating across all regions simultaneously; region selection is not required when configuring users, groups, or policies.

  • AWS Root Account:

    • Automatically created upon initial setup of an AWS account.

    • Possesses unrestricted, full administrative authority over all resources and billing in the account.

    • Security Rule: Must not be used for daily administrative or operational activities, and its credentials must never be shared.

IAM Users and Groups Architecture

  • IAM Users:

    • Represent individual physical people or entities within an organization.

    • Granted specific login credentials (passwords for console access or access keys for programmatic access).

  • IAM Groups:

    • Logical collections of IAM users.

    • Used to assign uniform permissions to multiple users at once.

    • Hierarchy Limitation: Groups contain users only; groups cannot contain other groups.

  • Membership Rules:

    • Users are not required to belong to a group.

    • A single user can belong to zero, one, or multiple IAM groups simultaneously.

  • Example Multi-Group Organization:

    • Alice: Member of Group: Developers.

    • Bob: Member of Group: Developers.

    • Charles: Member of both Group: Developers and Group: Audit Team.

    • David: Member of both Group: Audit Team and Group: Operations.

    • Edward: Member of Group: Operations.

    • Fred: Unattached user; does not belong to any group.

IAM Users and Groups Overlap Architecture

IAM Permissions and Policy Inheritance

  • IAM Policies:

    • JSON documents defining specific permissions granted or denied to principals.

    • Can be directly attached to users or assigned to groups.

  • Principle of Least Privilege: Core AWS security doctrine dictating that users should only receive the minimum permissions necessary to complete their required job functions, and no more.

  • Policy Inheritance Rules:

    • Every user belonging to an IAM group automatically inherits all policy permissions attached to that group.

    • When a user belongs to multiple groups (such as Charles belonging to Developers and Audit Team), the user acquires the combined sum of permissions across all attached groups.

  • Inline Policies:

    • Custom permissions applied directly to an individual user object rather than inherited from a group (e.g., Fred receiving permissions attached directly as an inline policy).

IAM Policy Inheritance Diagram

Structure of IAM Policy Documents

  • Core Structure Fields:

    • Version: Specifies the policy language syntax version. The standard version string is `