重命名IAM角色 [英] Rename an IAM Role

查看:103
本文介绍了重命名IAM角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在创建IAM角色时打了一个错字,以允许Lambda函数访问cloudwatch日志并创建EC2卷快照.是否可以使用控制台或AWS CLI重命名角色?

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 ?

推荐答案

在创建角色后,您将无法编辑IAM角色.在很多地方都提到了这一点,包括通过IAM控制台创建角色的时间.

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.

docs 中的多个位置.

对于角色名称",键入一个角色名称以帮助识别此角色的目的.角色名称在您的AWS账户内必须是唯一的.输入名称后,请单击下一步".

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.

角色名称具有字符限制. AWS账户中角色的数量以及角色所附加策略的策略大小也受到限制.有关更多信息,请参见IAM实体和对象的限制. 请注意,角色创建后就无法编辑.

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.

无法通过控制台或AWS CLI编辑名称.

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

这篇关于重命名IAM角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆