cliente boto3 NoRegionError: debe especificar un error de región solo a veces

Tengo un cliente boto3: boto3.client('kms') Pero sucede en máquinas nuevas, se abren y cierran dinámicamente. if endpoint is None: if region_name is None: # Raise a more specific error message that will give # better guidance to the user what needs to happen. raise NoRegionError() ¿Por...