gossm
gossm copied to clipboard
Feature request: respect SSMSessionRunAs tag when connecting
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
Do you know what API you can use to get this information?