Last active
June 26, 2024 20:34
-
-
Save meyer1994/ae3944241de9326a5cef6ced0a7918bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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