What is the difference between a trust policy and a permissions policy on a role?
IntermediateConceptGlobal Infrastructure and IAM Basics
Answer
The trust policy (assume-role policy document) is a resource-based policy on the role that says who may assume it. The permissions policies say what the role can do once assumed. Both must be right: a perfect permissions policy is useless if the trust policy does not list your principal, and the caller also needs sts:AssumeRole permission if it is in another account.
{"Effect":"Allow","Principal":{"Service":"ec2.amazonaws.com"},"Action":"sts:AssumeRole"}
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