Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
770 views
in Technique[技术] by (71.8m points)

amazon-web-services - 重命名IAM角色(Rename an IAM Role)

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.

(我在创建IAM角色时进行了输入错误,以允许Lambda函数访问cloudwatch日志并创建EC2卷快照。)

Is there any way to rename the role, whether by using the console or the AWS CLI ?

(是否可以使用控制台或AWS CLI重命名角色?)

  ask by Souad translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You cannot edit IAM roles after the role has been created.

(创建角色后,您将无法编辑IAM角色。)

This is mentioned in several places, including when the role is created through the IAM console.

(在很多地方都提到了这一点,包括在通过IAM控制台创建角色时。)

在此处输入图片说明

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.

(角色名称在您的AWS账户内必须是唯一的。)

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.

(AWS账户中角色的数量以及角色附加策略的策略大小也受到限制。)

For more information, see Limitations on IAM Entities and Objects.

(有关更多信息,请参见IAM实体和对象的限制。)

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.

(无法通过控制台或AWS CLI编辑名称。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...