Closed cedieio closed 6 months ago
Using profiles with session set and no sso_start_url fails when trying to assume with --export-sso-token
--export-sso-token
This is caused by directly referencing profile.AWSConfig.SSOStartURL on ExportAccessTokenToCache, which in this case should use profile.SSOStartURL()
profile.AWSConfig.SSOStartURL
ExportAccessTokenToCache
profile.SSOStartURL()
Sample profile config
[sso-session test-session] sso_region = ap-southeast-2 sso_registration_scopes = sso:account:access sso_start_url = https://test.com/start# [profile test-profile] common_fate_generated_from = aws-sso sso_account_id = 175914186171 sso_role_name = test-role sso_session = nine
Using profiles with session set and no sso_start_url fails when trying to assume with
--export-sso-token
This is caused by directly referencing
profile.AWSConfig.SSOStartURL
onExportAccessTokenToCache
, which in this case should useprofile.SSOStartURL()
Sample profile config