From 57ae2b44f570193d7a45c19aacabb9afdb30d91f Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 28 May 2026 17:54:12 -0300 Subject: [PATCH] fix(bedrock): improve detection of pre-existing aws credentials --- internal/config/load.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/config/load.go b/internal/config/load.go index aee24bff3652301acde20c46f79cdb57c7bb5178..599dcc257bb8c84436a04ad236c6a32f0ce22c0d 100644 --- a/internal/config/load.go +++ b/internal/config/load.go @@ -813,6 +813,9 @@ func hasAWSCredentials(env env.Env) bool { if _, err := os.Stat(filepath.Join(home.Dir(), ".aws/credentials")); err == nil && !testing.Testing() { return true } + if _, err := os.Stat(filepath.Join(home.Dir(), ".aws/login")); err == nil && !testing.Testing() { + return true + } return false }