Ravi Sir's Cards › AWS
Role with a trust policy
This revision card explains Role with a trust policy. It starts from the need that servers must not store access keys. On the card, the building blocks include create-role needs a trust policy that says who may assume it. The how-to section notes EC2 needs an instance profile holding the role. An example on the card is delete order: detach, remove, then delete.
Read card text
What this card says
Why do we need it?
Servers must not store access keys.
What is it?
create-role needs a trust policy that says who may assume it.
--assume-role-policy-document
How to do it
EC2 needs an instance profile holding the role.
create-instance-profile
Example
Delete order: detach, remove, then delete.