티스토리 뷰
728x90
import boto3
from botocore.config import Config
_MAX_ATTEMPTS = 15
def boto3_client(type):
config = Config(
retries={
"max_attempts": _MAX_ATTEMPTS,
"mode": "standard"
}
)
return boto3.client(type, config=config)
728x90
'공부' 카테고리의 다른 글
[athena] schema updated & data format (0) | 2023.03.30 |
---|---|
[DBT] basic (0) | 2023.03.30 |
[hive] partition reload (0) | 2023.03.16 |
[windows] COPY /b headers.txt+data.txt result.txt (0) | 2023.03.16 |
[sh] csv string count (0) | 2023.03.16 |
댓글