Skip to content

Commit

Permalink
AWS auth fixed.
Browse files Browse the repository at this point in the history
Signed-off-by: viktor-kurchenko <[email protected]>
  • Loading branch information
viktor-kurchenko committed Jan 26, 2024
1 parent 084ce0c commit b8649f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/aws/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func InitClientsMap(ctx context.Context, accounts []dto.Account) error {
key := clientKey(account.Name, resource.Location)
if _, ok := clientsMap[key]; !ok {
log.FromContext(ctx).Infof("initializing aws clients for: %s", key)
cfg, err := config.LoadDefaultConfig(ctx, config.WithSharedConfigProfile(account.Name), config.WithRegion(resource.Location))
cfg, err := config.LoadDefaultConfig(ctx, config.WithRegion(resource.Location))
if err != nil {
return err
}
Expand Down

0 comments on commit b8649f2

Please sign in to comment.