S3 Cloud Object Storage4 min readβ€’Updated September 2026β€’Reviewed 2026-09-27

Use S3 Storage with Boto3 (Python)

Boto3 and other S3 SDKs connect through the S3-compatible endpoint for common object operations.

πŸ“‹ Prerequisites

  • Python with boto3 installed
  • Provisioned S3 endpoint URL, Access Key and Secret Key

Step-by-Step Instructions

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"),
)
2

Upload an object

Upload objects with server-side encryption as agreed during provisioning.

with open("dataset.parquet", "rb") as data:
    s3.put_object(
        Bucket="my-bucket",
        Key="2026/dataset.parquet",
        Body=data,
        ServerSideEncryption="AES256",
    )
πŸ’‘ Pro Tip: Validate workload-specific SDK operations before production cutover.

πŸ“Œ Important Notes

  • Keep Secret Keys server-side. For browser or mobile uploads, use pre-signed URLs instead.

Related Guides in S3 Cloud Object Storage

Connecting to Sovereign S3 Cloud Object Storage with AWS CLI & Rclone

4 min read β€’ Read β†’

S3 Cloud Object Storage β€” Getting Started

4 min read β€’ Read β†’

S3 Access Credentials β€” Endpoint, Keys and Safe Handling

3 min read β€’ Read β†’
Chat with HubforHost on WhatsApp (+91 7780204727)