UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

9 lines (6 loc) 216 B
'use strict'; const _ = require('lodash'); module.exports = (stacks, prefix, service, stage) => _.flatten(stacks).map(entry => ({ Key: `${prefix}/${service}/${stage}/${entry.directory}/${entry.file}`, }));