def get_resource(self):
        '''use the user provided endpoint and keys (from environment) to
           connect to the resource. We can share the aws environment
           variables:

           AWS_ACCESS_KEY_ID
           AWS_SECRET_ACCESS_KEY

           https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
        '''

        # If base is not defined, assume using aws client
        if self.base != None:

            # s3.ServiceResource()
            self.s3 = boto3.resource('s3',
                                     endpoint_url=self.base,
                                     aws_access_key_id=self._id,
                                     aws_secret_access_key=self._key,
                                     config=boto3.session.Config(signature_version=self._signature))
        else:
           # We will need to test options for reading credentials here
           self.s3 = boto3.client('s3')
use the user provided endpoint and keys (from environment) to
           connect to the resource. We can share the aws environment
           variables:

           AWS_ACCESS_KEY_ID
           AWS_SECRET_ACCESS_KEY

           https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html