diff --git a/modules/cloud_service_providers/aws_cloud/aws_cloud.module b/modules/cloud_service_providers/aws_cloud/aws_cloud.module
index 7fe44632083b5d42e7c90bf4a64a548496725721..82b361ff08c682d8b06104574c95f5d58c4083ce 100644
--- a/modules/cloud_service_providers/aws_cloud/aws_cloud.module
+++ b/modules/cloud_service_providers/aws_cloud/aws_cloud.module
@@ -2468,7 +2468,7 @@ function aws_cloud_form_cloud_config_aws_cloud_add_form_validate(array &$form, F
           case 'ListInstanceProfiles':
             $iam_service = \Drupal::service('aws_cloud.iam');
             $iam_client = $iam_service->getIamClient();
-            $result = $iam_client->$method($params, $credentials) ?? 'UnauthorizedOperation';
+            $result = $iam_client->$method([]) ?? 'UnauthorizedOperation';
             break;
 
           default:
diff --git a/modules/cloud_service_providers/aws_cloud/src/Service/Iam/IamService.php b/modules/cloud_service_providers/aws_cloud/src/Service/Iam/IamService.php
index fe0864d0e3bb0edf56e35fa588f46b60e74cc460..9bf3219d8993b7356a072849e5c99acb929f3a4b 100644
--- a/modules/cloud_service_providers/aws_cloud/src/Service/Iam/IamService.php
+++ b/modules/cloud_service_providers/aws_cloud/src/Service/Iam/IamService.php
@@ -87,8 +87,8 @@ class IamService extends CloudServiceBase implements IamServiceInterface {
   /**
    * {@inheritdoc}
    */
-  public function listInstanceProfiles(array $params = [], array $credentials = []) {
-    $results = $this->execute('ListInstanceProfiles', $params, $credentials);
+  public function listInstanceProfiles(array $params = []) {
+    $results = $this->execute('ListInstanceProfiles', $params);
     return $results;
   }
 
diff --git a/modules/cloud_service_providers/k8s/tests/src/Traits/K8sTestFormDataTrait.php b/modules/cloud_service_providers/k8s/tests/src/Traits/K8sTestFormDataTrait.php
index ca2b31166f055f5b665e1bdbccd328c327d032ef..af1d6359dc03bfbfb67e6b615c859a1895850b63 100644
--- a/modules/cloud_service_providers/k8s/tests/src/Traits/K8sTestFormDataTrait.php
+++ b/modules/cloud_service_providers/k8s/tests/src/Traits/K8sTestFormDataTrait.php
@@ -1313,7 +1313,7 @@ EOS;
    * Create random stateful sets.
    *
    * @param string $namespace
-   *  The name of namespace.
+   *   The name of namespace.
    *
    * @return array
    *   Random stateful sets array.
