(profile string)
| 135 | } |
| 136 | |
| 137 | func effectiveSharedConfigProfile(profile string) string { |
| 138 | switch { |
| 139 | case profile != "": |
| 140 | return profile |
| 141 | case os.Getenv("AWS_PROFILE") != "": |
| 142 | return os.Getenv("AWS_PROFILE") |
| 143 | case os.Getenv("AWS_DEFAULT_PROFILE") != "": |
| 144 | return os.Getenv("AWS_DEFAULT_PROFILE") |
| 145 | default: |
| 146 | return "default" |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | func sharedConfigFilesForDebug() []string { |
| 151 | if path := os.Getenv("AWS_CONFIG_FILE"); path != "" { |