diff --git a/composer.json b/composer.json
index 5980ef70dbfa40356dcba8f729ef3e9657838b51..f53cfd2c0b6f79b806daa7a864283f832e0e4a25 100644
--- a/composer.json
+++ b/composer.json
@@ -24,8 +24,8 @@
     "minimum-stability": "dev",
     "prefer-stable": true,
     "require": {
-        "drupal/elasticsearch_connector": "^7.0-alpha2",
+        "drupal/elasticsearch_connector": "^8.0.x-dev",
         "jsq/amazon-es-php": "^0.3.0",
-        "drupal/key": "^1.14"
+        "drupal/key": "^1.16"
     }
 }
diff --git a/elasticsearch_aws_connector.module b/elasticsearch_aws_connector.module
index 388b130855f0fcc2df17706192715f89ed28433b..793a690347ec8ea9a11fa23c9b3007d3446e3782 100644
--- a/elasticsearch_aws_connector.module
+++ b/elasticsearch_aws_connector.module
@@ -39,7 +39,7 @@ function elasticsearch_aws_connector_elasticsearch_connector_load_library_option
 
   // Return if AWS Region is not set.
   if (empty($cluster->options['elasticsearch_aws_connector_aws_region'])) {
-    drupal_set_message('One must configure the AWS region.');
+    \Drupal::messenger()->addStatus('One must configure the AWS region.');
     return;
   }