pub fn resolve_aws_credentials(
auth: &AuthStorage,
) -> Option<AwsResolvedCredentials>Expand description
Resolve AWS credentials following the standard precedence chain.
Precedence (first match wins):
AWS_BEARER_TOKEN_BEDROCKenv var → bearer token authAWS_ACCESS_KEY_ID+AWS_SECRET_ACCESS_KEYenv vars → Sigv4AWS_PROFILEenv var → profile-based (returns the profile name for external resolution)- Stored
AwsCredentialsin auth.json - Stored
BearerTokenin auth.json (for bedrock)
region is resolved from: AWS_REGION → AWS_DEFAULT_REGION → "us-east-1".