UNPKG

serverless-blue-green-deployments

Version:

A Serverless plugin to implement blue/green deployment of Lambda functions

16 lines (12 loc) 322 B
const _ = require('lodash/fp') function replaceIotTopicRuleActionArnWithAlias (iotTopicRule, functionAlias) { return _.set( 'Properties.TopicRulePayload.Actions[0].Lambda.FunctionArn', { Ref: functionAlias }, iotTopicRule ) } const Iot = { replaceIotTopicRuleActionArnWithAlias } module.exports = Iot