tilfinltd / aws-extend-switch-roles

Extend your AWS IAM switching roles by Chrome extension, Firefox add-on, or Edge add-on
https://chromewebstore.google.com/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl?utm_source=github
MIT License
1.32k stars 141 forks source link

Enhancement Request: Grouped/Nested Roles #220

Closed ColinHalter closed 2 years ago

ColinHalter commented 2 years ago

When working with multiple orgs that have several accounts each, being able to condense certain roles into groups would be nice. I'm imagining something like this: image

For the config side, I was thinking this syntax:

[profile Role1]
role_arn = arn:aws:iam::000000000000:role/AdminAccess
color = e6a160
region = us-east-1

[profile Role2]
group = Org1
role_arn = arn:aws:iam::000000000000:role/AdminAccess
color = 015589
region = us-east-2

[profile Role2.1]
group = Org1
role_arn = arn:aws:iam::000000000000:role/AdminAccess
color = d17a7a
region = us-east-1

[profile Role2.2]
group = Org1
role_arn = arn:aws:iam::000000000000:role/AdminAccess
region = us-east-1
color = e6a160

[profile Role3]
group = Org2
role_arn = arn:aws:iam::000000000000:role/AdminAccess
region = us-east-1
color = 60e677

[profile Role3.1]
group = Org2
role_arn = arn:aws:iam::000000000000:role/AdminAccess
color = 59afc5
region=us-east-1

[profile Role3.2]
group = Org2
role_arn = arn:aws:iam::000000000000:role/AdminAccess
color = 59afc5
region=us-east-1
tilfin commented 2 years ago

I have already made reference to the hierarchical menu in #198 .