Default Behavior: By default, all requests are implicitly denied.
Root User Access: Alternatively, the AWS account root user has full access by default.
Override Rules
Explicit Allow: Any explicit allow in an identity-based or resource-based policy overrides the default denial.
Implicit Deny Overrides: If a permissions boundary, Organizations SCP, or session policy is present, it might override an explicit allow with an implicit deny.
Explicit Deny: An explicit deny in any policy overrides any allows.
Key Concepts
Identity-Based Policies: Attached to IAM identities (users, groups, roles) and grant permissions to IAM entities.
Resource-Based Policies: Grant permissions to the principal specified as the resource.
IAM Permissions Boundaries: Set the maximum permissions that an identity-based policy can grant to an IAM entity.
AWS Organizations SCPs: Specify maximum permissions for an organization or organizational unit.
Session Policies: Advanced policies passed as parameters when programmatically creating a temporary session for a role or federated user.
Here are examples of each type of policy in AWS:
Identity-Based Policies:
Example: Granting permissions to a specific IAM user to read data from an S3 bucket.