boto3 client NoRegionError: Sie müssen nur manchmal einen Regionsfehler angeben

Ich habe einen boto3-Client: boto3.client('kms') Aber es passiert auf neuen Maschinen. Sie öffnen und schließen sich dynamisch. 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()...