diff --git a/lib/plugins/aws/customResources/index.js b/lib/plugins/aws/customResources/index.js index 4cc291079..777638826 100644 --- a/lib/plugins/aws/customResources/index.js +++ b/lib/plugins/aws/customResources/index.js @@ -3,7 +3,6 @@ const path = require('path'); const crypto = require('crypto'); const BbPromise = require('bluebird'); -const _ = require('lodash'); const fse = BbPromise.promisifyAll(require('fs-extra')); const childProcess = BbPromise.promisifyAll(require('child_process')); const getTmpDirPath = require('../../../utils/fs/getTmpDirPath'); @@ -149,7 +148,7 @@ function addCustomResourceToService(awsProvider, resourceName, iamRoleStatements DependsOn: [customResourcesRoleLogicalId], }; - _.merge(Resources, { + Object.assign(Resources, { [customResourceFunctionLogicalId]: customResourceFunction, [customResourcesRoleLogicalId]: customResourceRole, });