Edit Role appearance after Switch Role configured

2

I switched role for first time in an account and gave the role a name and color, did it again for another new role. I can't find where to edit the names and colors that chose, looked everywhere in IAM and My Account.

OliverS
已提問 5 年前檢視次數 2268 次
3 個答案
1

If you are feeling adventurous, it's possible to change the name of a role in the local browser by editing the cookie "noflush_awscnm". You can carefully copy the value to a text editor, replace the name of the desired role, and then paste it back to the cookie value using the browser inspector under the domain s3.console.aws.amazon.com.

Edited by: ItsCarlos on Aug 24, 2021 11:37 PM

已回答 3 年前
  • Also ticking the show URL-decoded helped work out the key:value pairs

1

Thanks for the tip, good to know.

I ended up finding 2 other ways:

  • if I click on the URL that was sent to me (https://signin.aws.amazon.com/switchrole?roleName=ROLE_NAME&account=ACCOUNT_ID), that will show the original page where I could choose a name etc
  • if I click my account drop-down (top right) and Switch Role, I am shown the role setup page! The problem with that approach is that none of the fields are pre-filled, whereas with the URL they are. Luckily the entries were in my browser's form cache so I could select correct values and then a more suitable color.
OliverS
已回答 5 年前
0

Hi,
Have you tried clearing your Browser cache? Supposedly, the browser will cache the last 5 roles that were utilized. After you clear your Browser cache, when you Switch Role, you will need to re-enter the account number and role (and hopefully, here is where you can reset your name and color). Caveat, I have not tried.. Found this article that said it was being cached in the browser:
Link: https://theithollow.com/2018/04/30/manage-multiple-aws-accounts-with-role-switching/
Hope this helps!
-randy

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南