lambda/index.js
Function handler
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
exports.handler = (event, context, cb) => {
const s3 = new AWS.S3({ region: S3_Region });
const url_long = event.url_long;
const cdn_prefix = event.cdn_prefix;
let retry = 0; // try at most 3 times to create unique id