mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-05-06 20:09:06 +08:00
15 lines
380 B
Python
15 lines
380 B
Python
|
|
import boto3
|
|
from botocore.client import Config
|
|
|
|
from modules.env_to_yaml import get_env_var
|
|
|
|
s3_client = boto3.client(
|
|
's3',
|
|
endpoint_url=get_env_var(key="S3_ENDPOINT"),
|
|
aws_access_key_id=get_env_var(key="S3_ACCESS_KEY"),
|
|
aws_secret_access_key=get_env_var(key="S3_SECRET_ACCESS_KEY"),
|
|
region_name='ru-1',
|
|
config=Config(s3={'addressing_style': 'path'})
|
|
)
|