I started to look at why Elasticsearch was empty and found that the obp-scheduler-function-staging is throwing an exception (I found this by looking at the CloudWatch Logs for this function):
{ "errorType":
"Runtime.ImportModuleError",
"errorMessage":
"Error: Cannot find module 'xml2js'\nRequire stack:\n- /var/task/scheduler.js\n- /var/runtime/UserFunction.js\n-
/var/runtime/index.js", "stack":
[ "Runtime.ImportModuleError: Error: Cannot find module 'xml2js'",
"Require stack:",
"- /var/task/scheduler.js",
"- /var/runtime/UserFunction.js",
"- /var/runtime/index.js",
" at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object.<anonymous> (/var/runtime/index.js:43:30)",
" at Module._compile (internal/modules/cjs/loader.js:955:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)",
" at Module.load (internal/modules/cjs/loader.js:811:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:723:14)",
" at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)",
" at internal/main/run_main_module.js:17:11"
] }
It looks like it can't find the XML parsing library. It's possible this has something to do with updating the nodejs runtime.