Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion brume/boto_client.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
"""Boto clients."""

import boto3
from botocore.config import Config
from botocore.exceptions import ClientError


def boto_client(service, region=None):
"""
Instanciate boto client for specified service and region
"""
return boto3.client(service, region_name=region)
config = Config(
retries=dict(
max_attempts=10
)
)
return boto3.client(service, region_name=region, config=config)


def cfn_client(region):
Expand Down