Skip to content

Instantly share code, notes, and snippets.

@meyer1994
Last active June 26, 2024 20:34
Show Gist options
  • Save meyer1994/ae3944241de9326a5cef6ced0a7918bd to your computer and use it in GitHub Desktop.
Save meyer1994/ae3944241de9326a5cef6ced0a7918bd to your computer and use it in GitHub Desktop.
import boto3
def get_s3_client():
# Adapted from:
# https://gist.github.com/heitorlessa/5b709df96ea6ac5ddc600545c0683d3b?permalink_comment_id=4314586#gistcomment-431458
return boto3.client(
service_name="s3",
endpoint_url="localhost:9000",
aws_access_key_id="root",
aws_secret_access_key="password",
aws_session_token=None,
verify=False,
)
version: "3"
services:
minio:
image: minio/minio
ports:
- 9000:9000
- 9090:9090
environment:
MINIO_ROOT_USER: "root"
MINIO_ROOT_PASSWORD: "password"
command: minio server /data/minio --console-address ":9090"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment