Create a role with a trust policy.
Section: Roles, Trust, and Access Keys
Create a role
bash
bash
aws iam create-role --role-name AppRole --assume-role-policy-document file://trust-policy.jsonExplanation
The trust policy defines who can assume the role.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Roles, Trust, and Access Keys