@mapbox/cloudfriend
Advanced tools
Comparing version 5.0.2 to 5.1.0
# Changelog | ||
## v5.1.0 | ||
- Lambda shortcuts now support custom Docker images. | ||
## v5.0.2 | ||
@@ -4,0 +7,0 @@ - Fixes handling custom access log formats in hookshot shortcuts. |
@@ -231,2 +231,8 @@ 'use strict'; | ||
} | ||
if (Code.ImageUri) { | ||
this.Resources[`${LogicalName}`].Properties.PackageType = 'Image'; | ||
delete this.Resources[`${LogicalName}`].Properties.Runtime; | ||
delete this.Resources[`${LogicalName}`].Properties.Handler; | ||
} | ||
} | ||
@@ -233,0 +239,0 @@ } |
{ | ||
"name": "@mapbox/cloudfriend", | ||
"version": "5.0.2", | ||
"version": "5.1.0", | ||
"description": "Helper functions for assembling CloudFormation templates in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -95,2 +95,17 @@ 'use strict'; | ||
Code: { | ||
ImageUri: 'MyImage' | ||
} | ||
}); | ||
template = cf.merge(lambda); | ||
if (update) fixtures.update('lambda-docker', template); | ||
assert.deepEqual( | ||
noUndefined(template), | ||
fixtures.get('lambda-docker'), | ||
'expected resources generated using all default values and a docker image' | ||
); | ||
lambda = new cf.shortcuts.Lambda({ | ||
LogicalName: 'MyLambda', | ||
Code: { | ||
ZipFile: 'fake code' | ||
@@ -97,0 +112,0 @@ } |
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
474987
108
13148