gossm icon indicating copy to clipboard operation
gossm copied to clipboard

Feature request: respect SSMSessionRunAs tag when connecting

Open eskp opened this issue 4 years ago • 1 comments

This would be nice to have. When connecting via SSH over SSM:

$ gossm ssh
? Choose a target in AWS: target-instance    (i-0000)
? Type your connect user (default: root): eskp

Instead of having to type username every time, we can look at the value of IAM user tag SSMSessionRunAs as per the docs - https://docs.aws.amazon.com/systems-manager/latest/userguide/session-preferences-run-as.html

eskp avatar Sep 07 '20 23:09 eskp

Do you know what API you can use to get this information?

andymac4182 avatar Jun 13 '22 13:06 andymac4182