session = boto3.session.Session()
s3_client = session.client(service_name='s3', aws_access_key_id='aaa',
    aws_secret_access_key='bbb', endpoint_url='http://localhost')
Overwrite S3 endpoint using Boto3 configuration file