akittana / aws-virtual-bastion

A web based terminal for EC2 instances that does not require SSH or any other inbound connections to the instaces. Instead it uses the AWS Systems Manager (SSM) API to run commands (bash or powershell).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Support for STS Tokens

stefanlohr opened this issue · comments

could you add support for STS generated Tokens as well. We do not work with IAM users at all. we work only with federated access and api credentials via sts.

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html#using-temp-creds-sdk-cli

this would be AWS_SESSION_TOKEN in addition to AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for direct editing or .credentials file.

Thanks for the feedback.

I just updated the authentication prompt with an optional session token field as well as being able to load the session token if it was present in the credentials file.

Can you test and let me know if its working for you?

its working (crednential file & input fields). thx a lot.