Open
Description
I need to be able to switch connections between multiple AWS accounts/IAM roles. I would love to have an aws-adfs logout
implementation, so that I can logout from one role, then again issue aws-adfs login
to select another account/role.
- if I log into one, I'm able to access
❯ aws-adfs list
Available profiles:
* profile mengano |
* default | arn:aws:iam::<sanitized>:role/ADFS-Admin
❯ aws s3 ls | grep athena
2021-06-23 10:06:21 rsh-arod-athena-query-results
❯
- but if I then try to login again, before the STS session timeout, I can't switch to another account/role, it only shows me details of the current session.
❯ aws-adfs login
Prepared ADFS configuration as follows:
* AWS CLI profile : 'default'
* AWS region : 'us-east-2'
* Output format : 'json'
* SSL verification of ADFS Server : 'ENABLED'
* Selected role_arn : 'arn:aws:iam::<sanitized>:role/ADFS-Admin'
* ADFS Server : '<sanitized>'
* ADFS Session Duration in seconds : '7200'
* Provider ID : 'urn:amazon:webservices'
* S3 Signature Version : 'None'
* STS Session Duration in seconds : '3600'
* SSPI: : 'False'
* U2F and default method : 'True'
❯
My details:
❯ aws-adfs --version
1.24.5
❯
❯ sw_vers
ProductName: macOS
ProductVersion: 12.1
BuildVersion: 21C52
❯