|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
You can create a role by using the AWS Management Console, CLI, or the API.
If you use the AWS Management Console, you use a wizard that guides you through the steps for creating a role. The wizard has slightly different steps depending on whether you're creating a role for an AWS service, for an AWS account, or for a federated user. Therefore, we provide separate procedures for each scenario.
If you use the CLI or API to create roles for an AWS service such as Amazon EC2, you must also create an instance profile and add the role to the instance profile. (If you create a role using the console, IAM creates the instance profile automatically.)
Role names have character limitations. The number of roles and policy size are also limited. For more information, see Limitations on IAM Entities. After you create a role, you cannot rename it.