fix: aws_config
@@ -109,6 +109,7 @@ class AwsSearchConfig(LocalConfig):
region = os.environ.get('AWS_REGION')
credentials = boto3.Session().get_credentials()
+ if all([host, region, credentials]):
aws_auth = AWS4Auth(region=region, service=service, refreshable_credentials=credentials)
client = Elasticsearch(
