Create a boto3 DynamoDB client pointing at extenddb.
()
| 56 | ORDERS_TABLE = "SampleOrders" |
| 57 | TOURNAMENT_TABLE = "SampleTournamentMatches" |
| 58 | def make_client(): |
| 59 | """Create a boto3 DynamoDB client pointing at extenddb.""" |
| 60 | return boto3.client( |
| 61 | "dynamodb", |
| 62 | endpoint_url=ENDPOINT, |
| 63 | region_name=REGION, |
| 64 | config=Config(retries={"max_attempts": 0}), |
| 65 | ) |
| 66 | # --------------------------------------------------------------------------- |
| 67 | # Helpers |
| 68 | # --------------------------------------------------------------------------- |