func CreateNewAWSSessionFromConfig(cfg aws.Config) *awssession.Session {
	sess, _ := awssession.NewSessionWithOptions(
		awssession.Options{
			SharedConfigState: awssession.SharedConfigEnable,
			Config:            cfg,
		})
	return sess
}
CreateNewAWSSessionFromConfig returns an AWS session using AWS Config
package controllers
import (
	"github.com/adammck/venv"
	"github.com/aws/aws-sdk-go/aws"
	awsendpoints "github.com/aws/aws-sdk-go/aws/endpoints"
	awssession "github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/sagemaker"
)
type AWSConfigLoader struct {
	Env venv.Env
}
func NewAWSConfigLoader() AWSConfigLoader {
	return NewAWSConfigLoaderForEnv(venv.OS())
}
func NewAWSConfigLoaderForEnv(env venv.Env) AWSConfigLoader {
	return AWSConfigLoader{
		Env: env,
	}
}