Skip to content

Commit

Permalink
fix: set default aws profile when using default config
Browse files Browse the repository at this point in the history
  • Loading branch information
dhth committed Mar 17, 2024
1 parent 0c4dc64 commit b6a2df8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ func readConfig(filePath string, awsConfigSource ui.AWSConfigSource) ([]string,
env.Name))
}
}
var awsProfile string
if awsConfigSource == ui.SharedCfgProfileSrc {
awsProfile = *env.AwsProfile
}
systems = append(systems, ui.System{
Key: system.Key,
Env: env.Name,
AWSProfile: *env.AwsProfile,
AWSProfile: awsProfile,
AWSRegion: env.AwsRegion,
ClusterName: env.Cluster,
ServiceName: env.Service,
Expand Down

0 comments on commit b6a2df8

Please # to comment.