Fix for Error loading SSO Token: The SSO access token has either expired or is otherwise invalid.

If you getting this error when deploy to AWS SAM with shell script, you need to check the "sso_start_url" in the following path ~/.aws/config/ is correct.

[profile MyAWSProfile]
sso_start_url = https://aws-sso-my-account/start/#
sso_region = us-east-1
sso_account_id = 1234567890
sso_role_name = Admin
region = us-east-1
output = json        

Alternatively, you can try to manually login from "terminal" with the following command. And follow the instructions of the popup webpage.

aws sso login --profile MyAWSProfile        

To view or add a comment, sign in

More articles by Wesley Siow

Insights from the community

Others also viewed

Explore topics