trek10inc / awsume

A utility for easily assuming AWS IAM roles from the command line.
https://awsu.me
MIT License
485 stars 90 forks source link

Bug: Account Id shows incorrectly if not the "aws" partition #194

Closed LucasZielke closed 10 months ago

LucasZielke commented 1 year ago

When --list-profiles is run and users/roles for alternate aws partitions (such as aws-us-gov and aws-cn) the listed account id shows just the word "arn".

word arn showing when listing account

most likely due to manually removing part of the user/role arn on: https://github.com/trek10inc/awsume/blob/efec1b0c063bedce081f7a89da16bc29fd40e166/awsume/awsumepy/lib/profile.py#L269-L271

mtskillman commented 10 months ago

resolved by https://github.com/trek10inc/awsume/pull/226