An IAM role is a temporary permission identity that can be assumed by users, services, or applications. It does not have permanent login credentials and provides temporary access to AWS resources.
Step 1:-Go to the AWS console and search for IAM service

Click on IAM.
Step 2:-Now click on “Roles” on the left side menu bar

Step 3:-Click on Create role

Step 4:-In the “Create role” click on the AWS service as the trusted entity type.

What is a Trusted Entity?
A trusted entity is the identity that is allowed to assume the role.