Interview Prep/AWS/Global Infrastructure and IAM Basics

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"}
aws All AWS questions Roadmap: AWS core services

More on Global Infrastructure and IAM Basics