feat(bedrock): add support for `AWS_BEARER_TOKEN_BEDROCK` for bedrock
This adds an alternative authorization method vs. `aws configure`.
commit2708121abecf192a1c7b5e2d38ba3cdd51d3de08
authorAndrey Nering <andreynering@users.noreply.github.com>
dateMon 20 Oct 2025, 16:27 (1 year ago)
parent5e31553
internal/config/load.go+4
@@ -589,6 +589,10 @@ func hasVertexCredentials(env env.Env) bool {
589589}
590590
591591func hasAWSCredentials(env env.Env) bool {
592+ if env.Get("AWS_BEARER_TOKEN_BEDROCK") != "" {
593+ return true
594+ }
595+
592596 if env.Get("AWS_ACCESS_KEY_ID") != "" && env.Get("AWS_SECRET_ACCESS_KEY") != "" {
593597 return true
594598 }