on main help sign in
fix(bedrock): improve detection of pre-existing aws credentials
57ae2b4Andrey Nering
internal/config/load.go+3
@@ -813,6 +813,9 @@ func hasAWSCredentials(env env.Env) bool {
813 if _, err := os.Stat(filepath.Join(home.Dir(), ".aws/credentials")); err == nil && !testing.Testing() {
813 if _, err := os.Stat(filepath.Join(home.Dir(), ".aws/credentials")); err == nil && !testing.Testing() {
814 return true
814 return true
815 }
815 }
816+ if _, err := os.Stat(filepath.Join(home.Dir(), ".aws/login")); err == nil && !testing.Testing() {
817+ return true
818+ }
816
819
817 return false
820 return false
818}
821}