1
Initialize the client
Point the S3 client at your HubforHost endpoint URL with signature version s3v4.
import boto3
from botocore.client import Config
s3 = boto3.client(
"s3",
endpoint_url="https://YOUR_S3_ENDPOINT",
aws_access_key_id="YOUR_ACCESS_KEY",
aws_secret_access_key="YOUR_SECRET_KEY",
config=Config(signature_version="s3v4"),
)