I am using sso for authentication in aws cli and s5cmd throws error when trying to use it with sso. I don't have any other profile configured.
When running, s5cmd ls,
I get,
ERROR "ls": profile "sso" is configured to use SSO but is missing required configuration: sso_region, sso_start_url
and my config is of format,
I get this error,
ERROR "ls": SSOProviderInvalidToken: the SSO session has expired or is invalid caused by: open /home/xxx/.aws/sso/cache/xxx.json: no such file or directory but aws s3 ls works fine.
Is there any additional config to make s3cmd work with sso? And I believe the error in the first error can be mitigated if we reference the sso_session in the profile.
I am using sso for authentication in aws cli and s5cmd throws error when trying to use it with sso. I don't have any other profile configured.
When running,
s5cmd ls
, I get,ERROR "ls": profile "sso" is configured to use SSO but is missing required configuration: sso_region, sso_start_url
and my config is of format,Even when I update my config to have the information requested in the error, and my updated config looks like this,
I get this error,
ERROR "ls": SSOProviderInvalidToken: the SSO session has expired or is invalid caused by: open /home/xxx/.aws/sso/cache/xxx.json: no such file or directory
butaws s3 ls
works fine.Is there any additional config to make s3cmd work with sso? And I believe the error in the first error can be mitigated if we reference the
sso_session
in the profile.