You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Been trying to figure out how to get the current creds used on my terminal window. So that I can place that in my PROMPT. I am able to run aws sts get-caller-identity but that can take up to 3 seconds to run ( that is a long pause between terminal prompts ).
Before we used sso, I could just look at AWS_PROFILE variable to tell what that was being used. Is there a way to get this information? Or can the cli add AWS_SSO_ARN and AWS_SSO_EXPIRATION ( with timestamp of when it expires )?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Been trying to figure out how to get the current creds used on my terminal window. So that I can place that in my PROMPT. I am able to run
aws sts get-caller-identity
but that can take up to3 seconds
to run ( that is a long pause between terminal prompts ).Before we used sso, I could just look at
AWS_PROFILE
variable to tell what that was being used. Is there a way to get this information? Or can the cli addAWS_SSO_ARN
andAWS_SSO_EXPIRATION
( with timestamp of when it expires )?Beta Was this translation helpful? Give feedback.
All reactions