Skip to content

Commit

Permalink
docs: 📝 add behavior comment to GetAWSProfile function
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChung committed Apr 9, 2023
1 parent 01a62ee commit 55ae7f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,9 @@ func GetAWSProfile(cmd *cobra.Command) (string, error) {
),
), nil
}
// AWS will use the default profile if a profile is not specified. We will
// follow the same behavior when --aws-profile is not set and aws-profile is
// not specified in the cprl.yaml configuration file.
// https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
return "default", nil
}

0 comments on commit 55ae7f7

Please # to comment.