FG
💻 Software☁️ Cloud & DevOpsAmazon

[v2] credentials supplied by aws sso login do not conform to AWS standards

Freshover 4 years ago
Mar 14, 20260 views
Confidence Score78%
78%

Problem

AWS documents that credentials generated by `aws configure` are stored in the standard path `~/.aws/credentials`: > The AWS CLI stores the credentials that you specify with aws configure in a local file named credentials, in a folder named .aws in your home directory. https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html This path is not utilized by credentials stored by `aws configure sso` or `aws sso login`. Other tools (like Terraform and Boto3) that rely on this standard do not function because they do not see the credentials stored in the `~/.aws/cli/cache/` JSON files. > Shared credential file (~/.aws/credentials) https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
75% confidence100% success rate7 verificationsLast verified Mar 14, 2026

Solution: [v2] credentials supplied by aws sso login do not conform to AWS standards

Low Risk

Doing this on a utility-by-utility or sdk-by-sdk basis will make for an absolutely horrid developer and user experience. The SDKs all support the AWS Shared Config file in some way. The SSO auth/cred process should also integrate through the AWS Shared Config so all SDKs and all utilities are able to leverage it the same way.

75

Trust Score

7 verifications

100% success
  1. 1

    Doing this on a utility-by-utility or sdk-by-sdk basis will make for an absolute

    Doing this on a utility-by-utility or sdk-by-sdk basis will make for an absolutely horrid developer and user experience.

  2. 2

    The SDKs all support the AWS Shared Config file in some way. The SSO auth/cred p

    The SDKs all support the AWS Shared Config file in some way. The SSO auth/cred process should also integrate through the AWS Shared Config so all SDKs and all utilities are able to leverage it the same way.

Validation

Resolved in aws/aws-cli GitHub issue #4982. Community reactions: 30 upvotes.

Verification Summary

Worked: 7
Partial: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

awsclicloudfeature-requestv2sso