What are the main IAM policy types?
IntermediateConceptGlobal Infrastructure and IAM Basics
Answer
- Identity-based policies attach to users, groups and roles.
- Resource-based policies attach to a resource (S3 bucket, SQS queue, KMS key, role trust policy) and name a
Principal. - Permission boundaries cap what an identity-based policy can grant.
- SCPs (and RCPs) in Organizations cap what accounts can do.
- Session policies passed during
AssumeRoleor federation further restrict that session. - ACLs are legacy resource-level grants (S3, VPC NACLs are unrelated).
Only identity-based and resource-based policies grant permissions. The rest only restrict.
More on Global Infrastructure and IAM Basics
What is the difference between a Region, an Availability Zone and an edge location?BeginnerHow do you choose a Region for a workload?BeginnerWhat is the difference between an AZ name like `us-east-1a` and an AZ ID like `use1-az1`?IntermediateExplain the shared responsibility model.BeginnerWhat is the root user and how should you treat it?BeginnerWhat is the difference between an IAM user, group and role?Beginner