@everymundo/aws-lambda-serverless-component
Advanced tools
Comparing version 1.1.9 to 1.1.10
{ | ||
"name": "@everymundo/aws-lambda-serverless-component", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"main": "./serverless.js", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -48,4 +48,3 @@ const path = require('path') | ||
Mode: 'PassThrough' | ||
}, | ||
tags:{}, | ||
}, | ||
} | ||
@@ -55,8 +54,6 @@ | ||
async default(inputs = {}) { | ||
this.context.status(`Deploying`); | ||
const config = mergeDeepRight(defaults, inputs); | ||
config.tags = inputs.tags || {}; | ||
config.name = this.state.name || inputs.name || this.context.resourceId(); | ||
const config = mergeDeepRight(defaults, inputs) | ||
config.name = this.state.name || inputs.name || this.context.resourceId() | ||
this.context.debug( | ||
@@ -70,5 +67,5 @@ `Starting deployment of lambda ${config.name} to the ${config.region} region.` | ||
maxRetries: 10 | ||
}) | ||
}); | ||
const awsIamRole = await this.load('@serverless/aws-iam-role') | ||
const awsIamRole = await this.load('@serverless/aws-iam-role'); | ||
@@ -141,3 +138,3 @@ // If no role exists, create a default role | ||
this.context.debug(`Creating lambda ${config.name} in the ${config.region} region.`) | ||
const createResult = await createLambda({ lambda, ...config }) | ||
const createResult = await createLambda({ lambda, ...config }) | ||
config.arn = createResult.arn | ||
@@ -161,3 +158,3 @@ config.hash = createResult.hash | ||
this.context.debug(`Updating ${config.name} lambda config.`); | ||
const updateResult = await updateLambdaConfig({ lambda, ...config }); | ||
const updateResult = await updateLambdaConfig({ lambda, ...config, }); | ||
this.context.debug(`Lambda config for ${config.description} updated.`); | ||
@@ -164,0 +161,0 @@ config.hash = updateResult.hash; |
10
utils.js
@@ -102,3 +102,4 @@ const { tmpdir } = require('os') | ||
vpcConfig, | ||
tracingConfig | ||
tracingConfig, | ||
tags | ||
}) => { | ||
@@ -108,2 +109,3 @@ const params = { | ||
Code: {}, | ||
Tags: tags, | ||
Description: description, | ||
@@ -120,3 +122,3 @@ Handler: handler, | ||
VpcConfig: vpcConfig, | ||
TracingConfig: tracingConfig | ||
TracingConfig: tracingConfig, | ||
} | ||
@@ -151,6 +153,8 @@ | ||
layer, | ||
vpcConfig | ||
vpcConfig, | ||
tags | ||
}) => { | ||
const functionConfigParams = { | ||
FunctionName: name, | ||
Tags: tags, | ||
Description: description, | ||
@@ -157,0 +161,0 @@ Handler: handler, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38602
709