code: func BucketRegion(awsSession *session.Session,
  	S3Bucket string,
  	logger *logrus.Logger) (string, error) {
  	regionHint := ""
  	if awsSession.Config.Region != nil {
  		regionHint = *awsSession.Config.Region
  	}
  	awsContext := aws.BackgroundContext()
  	return s3manager.GetBucketRegion(awsContext,
  		awsSession,
  		S3Bucket,
  		regionHint)
  }
docs: // BucketRegion returns the AWS region that hosts the bucket