on main help sign in
fix(bedrock): detect credentials set by `aws configure` (#1232)
commit69be8c20e2152d3a0c053d005013286d8bfe57c6 authorAndrey Nering <andreynering@users.noreply.github.com> dateWed 15 Oct 2025, 06:57 (1 year ago) parent8c9ce8e
1 file changed+5
internal/config/load.go+5
internal/config/load.go+5
@@ -605,6 +605,11 @@ func hasAWSCredentials(env env.Env) bool {
605605 env.Get("AWS_CONTAINER_CREDENTIALS_FULL_URI") != "" {
606606 return true
607607 }
608+
609+ if _, err := os.Stat(filepath.Join(home.Dir(), ".aws/credentials")); err == nil {
610+ return true
611+ }
612+
608613 return false
609614}
610615