old_contents: 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);
          }
        });
      });
    }
  };
  
new_contents: const execFile = require('child_process').execFile;
  const fs = require("fs");
  
  exports.handler = function(event, context) {
    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);
          }
        });
      });
    }
  };
  
subject: Remove unused CHUNK_SIZE config