Rename an IAM Role

拜拜、爱过 提交于 2019-12-08 16:17:49

问题


I made a typo while creating an IAM role to allow a lambda function to access the cloudwatch logs and to create EC2 volumes snapshots. Is there any way to rename the role, whether by using the console or the AWS CLI ?


回答1:


You cannot edit IAM roles after the role has been created. This is mentioned in several places, including when the role is created through the IAM console.

And in several places in the docs.

For Role name, type a role name to help identify the purpose of this role. Role names must be unique within your AWS account. After you enter the name, click Next Step.

Role names have character limitations. The number of roles in an AWS account and the policy size for policies attached to roles are also limited. For more information, see Limitations on IAM Entities and Objects. Note that you cannot edit the name of the role after it is created.

It is not possible to edit the name via the console or AWS CLI.



来源:https://stackoverflow.com/questions/42488833/rename-an-iam-role

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!