title: error when using Promise.all: TypeError: intermediate value is not iterable at
body: <p>I am trying to stop a list of sql instances, since it's async I am using <code>Promise.all</code> <br>
  the code fails on: </p>
  
  <pre><code>TypeError: (intermediate value) is not iterable
      at Promise.all.sqlInstancesList.map (/workspace/index.js:40:53)
      at process._tickCallback (internal/process/next_tick.js:68:7)
  </code></pre>
  
  <p>what am I doing wrong? <br>
  here is the code:</p>
  
  <pre><code>const { google } = require('googleapis')
  const { auth } = require('google-auth-library')
  const sqladmin = google.sqladmin('v1beta4')
  ​
  
  exports.stopSqlInstance = async (event, context, callback) =&gt; {
          try {
  ​
                  const authRes = await auth.getApplicationDefault()
  ​
                  var sqlInstancesList = ["my-instance-name"];
  ​
                  await Promise.all(
                          sqlInstancesList.map(async (instance) =&gt; {
                                  console.info("stopping " + instance);
                                  var request = {
                                          auth: authRes.credential,
                                          project: "my-project-id",
                                          instance: instance,
                                          requestBody: {
                                                   "settings": {
                                                            "activationPolicy": "NEVER"
                                                   }
                                           }  
                                  }       
                                  const [operation] = await sqladmin.instances.patch(request);
                                  // Operation pending
                                  return operation.promise();
                           })
                   );
  ​
                  // Operation complete. Instance successfully stopped.
                  const message = `Successfully stopped instance(s)`;
                  console.log(message);
                  callback(null, message);
  ​
          } catch(err) {
                  console.error(err);
                  callback(err);
          }
  
  }
  </code></pre>