aws-extend-switch-roles icon indicating copy to clipboard operation
aws-extend-switch-roles copied to clipboard

Show only matching roles ignores IAM roles with paths

Open dliao-tyro-admin opened this issue 3 years ago • 1 comments

We recently tried to use the extension for IAM roles with path prefixes:

[identity]
aws_account_id = xxx-identity

[DEV-DevAdmin]
aws_account_id = development
role_name = human/WorkflowDevAdmin
source_profile = identity
color = 2384fd

With the "Show only matching roles" option enabled, that role isn't available via the extension anymore.

dliao-tyro-admin avatar Aug 10 '22 01:08 dliao-tyro-admin

It should not be possible to include '/' in the role_name of the switch target.

Try the following:

[identity]
aws_account_id = xxx-identity
role_name = human

[DEV-DevAdmin]
aws_account_id = development
role_name = WorkflowDevAdmin
source_profile = identity
color = 2384fd

With the "Show only matching roles" option disabled

tilfin avatar Sep 23 '22 15:09 tilfin