Fetch не определяется Amazon-Cognito-Identity-JS
global.fetch = require('node-fetch')
Real Rat
global.fetch = require('node-fetch')