const execFile = require('child_process').execFile;
const fs = require("fs");

exports.handler = function(event, context) {
  const chunkSize = process.env.CHUNK_SIZE || 10;

  var records = event.Records;
  var context = context;

  console.log("Received " + records.length + " records.")

  if (process.env.SKIP_SEND === "true") {
    console.log(`SKIPPING SEND, received event data: ${JSON.stringify(records)}`);
  } else {
    var fileName = "/tmp/" + context.invokeid + ".json";

    fs.writeFile(fileName, JSON.stringify(records), (err) => {
      if (err) throw err;

      execFile('./ruby_wrapper', [fileName, JSON.stringify(context)], {}, (error, stdout, stderr) => {
        stdout.trim().split("\n").forEach(function(x) {
          log = x.trim();
          if (log !== "") {
            console.log(log);
          }
        });
        stderr.trim().split("\n").forEach(function(x) {
          log = x.trim();
          if (log !== "") {
            console.log(log);
          }
        });
        if (error) {
          console.error(`exec error: ${error}`);
          process.exit(1);
        }
      });
    });
  }
};

@@ -121,59 +121,8 @@
 ) %7B%0A
-  const chunkSize = process.env.CHUNK_SIZE %7C%7C 10;%0A%0A
   va

Remove unused CHUNK_SIZE config