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

Documentation for AWS SSO Authentication #221

Open gw-bcharboneau opened 2 years ago

gw-bcharboneau commented 2 years ago

Would it be possible to get documentation and examples of how to use this extension when using AWS SSO federated login?

tilfin commented 2 years ago

Basically, your configuration does not change depending on how you log in.

arnvid commented 2 years ago

@gw-bcharboneau - with SSO I have seen that in some cases using account_id as numerical would work outside SSO, but not with SSO login

[tlzdevorg] aws_account_id = ###########

vs

[tlzdevorg] aws_account_id = tlz-dev-mpa-x

yongzhang commented 1 year ago

I also don't know how to config it for aws sso

nikskiz commented 1 year ago

Trying to figure this out with SSO? Documentation would be nice :)

heikkis commented 1 year ago

The documentation says that add only the name of permission set as role_name and define aws_account_id. However I was not able get this work still.

[ssotestprofile]
aws_account_id = 1234567890
role_name = PermissionSetName
color = 330029

When the top right corner shows AWSReservedSSO_PermissionSetName_abcdefghijkl/username .

@tilfin can you point me what I missed?

aMfM9E2 commented 1 year ago

or is it possible support to switch by sso landing account X_X like, SSO -> landing account -> workload account

dennisvandehoef commented 1 year ago

Heey, so we use LastPass Apps as an SSO provider (I don't know if this is different from other SSO providers on an AWS side).

The following config works for me, maybe it helps you:

[production]
role_arn       = arn:aws:iam::1234567890:role/RoleName
color          = ff1a1a

[staging]
role_arn       = arn:aws:iam::1234567890:role/RoleName
color          = 80c8f5

[development]
role_arn       = arn:aws:iam::1234567890:role/RoleName
color          = 4fdf11
yongzhang commented 1 year ago

The documentation says that add only the name of permission set as role_name and define aws_account_id. However I was not able get this work still.

[ssotestprofile]
aws_account_id = 1234567890
role_name = PermissionSetName
color = 330029

When the top right corner shows AWSReservedSSO_PermissionSetName_abcdefghijkl/username .

@tilfin can you point me what I missed?

Same here.