Boto3 intermittent NoAuthHandlerFound errors
问题 When trying to connect to an AWS service via Boto3, I occasionally get the following error: NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV3Handler'] Check your credentials This is running on an EC2 instance with an IAM Role configured. This error happens rarely. 回答1: IAM roles provide credentials via the AWS metadata service. Boto3 will connect to this service to get credentials, but this connection can time out. By default, Boto3 will not retry