Creating IAM Roles-AWS Blog Info
Creating IAM Roles for a service Creating a Role for a service using the AWS Management Console. In the navigation pane of the console, click Roles and then click on "Create Role" . The screen appears shown below on clicking Create Role button. Choose the service that you want to use with the role. Select the managed policy that attaches the permissions to the service. In a role name box, enter the role name that describes the role of the service, and then click on "Create role". Creating a Role for a service using the CLI (Command Line Interface) Creating a role using the console, many of the steps are already done for you, but with the CLI you explicitly perform each step yourself. You must create a policy, and assign a permission policy to the role. To create a role for an AWS service using the AWS CLI, use the following commands: Create a role: aws iam create-role Attach a permission policy to the role: aws iam put-role-policy If you are using a role wi...