in common/aws.go [15:21]
func validateCredentials(ctx context.Context, stsClient *sts.Client, profile string) (*sts.GetCallerIdentityOutput, error) {
resp, err := stsClient.GetCallerIdentity(ctx, &sts.GetCallerIdentityInput{})
if err != nil {
return resp, errors.New("Could not find valid credentials for profile: " + profile)
}
return resp, nil
}