UNPKG

serverless

Version:

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

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