Node.js grunt task for creating SQS queues

I have the following code:

  grunt.registerTask(
    'configure-sqs',
    'Configure SQS Queues',
    function () {
      var queues = config.sqs.queues;

      for(var q in queues) {
        SQS.createQueue({ QueueName: queues[q] }, function(err, data) {
          if (err) grunt.log.error([err]);
          else grunt.log.ok('Ensured queue Exists: ' + queueName + ' with url: ' + data.QueueUrl);
        });
      }
    }
  );

But, for some reason, when I run grunt configure-sqs the grunt task runs but the message of Done, without errors. And if I view my SQS queues, the queues I am wanting to create do not exist