I have a boto3 client :
boto3.client(\'kms\')
But it happens on new machines, They open and close dynamically.
if endpoint
os.environ['AWS_DEFAULT_REGION'] = 'your_region_name'
In my case sensitivity mattered.