Skip to content

Commit

Permalink
adds region from env var to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Day authored and sudolibre committed Jul 2, 2024
1 parent f0d6b31 commit 2d7ec20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ func readConfig() (Attributes, error) {
if !attrs.AllProfiles {
attrs.AllProfiles = viper.GetBool(downCase(AllProfilesEnvVar))
}
if attrs.AWSRegion == "" {
attrs.AWSRegion = viper.GetString(downCase(AWSRegionEnvVar))
}

// if session duration is 0, inspect the ENV VAR for a value, else set
// a default of 3600
Expand Down

0 comments on commit 2d7ec20

Please sign in to comment.