"""Connectors. Connections to other systems (such as databases). The connectors are meant to be immutable references through the code. """ from os import environ import boto3 from owsrequest.config import logger from owsrequest.utils.dynamodb_client import dynamodb_opts dynamodb = None try: dynamodb = boto3.resource('dynamodb', **dynamodb_opts(environ)) except Exception as e: logger.warn(f'Unable to establish dynamodb connection {type(e)}')