boto3 client NoRegionError: You must specify a region error only sometimes

后端 未结 7 1649
误落风尘
误落风尘 2021-01-30 07:30

I have a boto3 client :

boto3.client(\'kms\')

But it happens on new machines, They open and close dynamically.

    if endpoint         


        
7条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-30 08:21

    I believe, by default, boto picks the region which is set in aws cli. You can run command #aws configure and press enter (it shows what creds you have set in aws cli with region)twice to confirm your region.

提交回复
热议问题