lambda_wrap 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lambda_wrap/lambda_manager.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c461b1875da7c0bfaee887e511eb653cb60e4d74
|
4
|
+
data.tar.gz: 3f56d027c55de2a2ba989e5053fcbf4480ea9599
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e238427e259a5bd4a3ddf230702de0142396dd1ce5abd1f3c6f43a353613b866999a3c47366400b91353a660ff832fd57a01e8dc89719b4f3a3271c756783b1f
|
7
|
+
data.tar.gz: 9667a2cf62c031eeff36b2580bf4be80fba884077dd6bd1c367aedaf0e88fb5d46a23a1e1e5204e36283b080982d73d3fcd8f088be609fda61a55d3fd6af9618
|
@@ -79,7 +79,8 @@ module LambdaWrap
|
|
79
79
|
# [function_name] The name of the lambda function.
|
80
80
|
# [handler] The handler that should be executed for this lambda function.
|
81
81
|
# [lambda_role] The arn of the IAM role that should be used when executing the lambda function.
|
82
|
-
|
82
|
+
# [lambda_description] The description of the lambda function.
|
83
|
+
def deploy_lambda(bucket, key, version_id, function_name, handler, lambda_role, lambda_description = "Deployed with LambdaWrap")
|
83
84
|
|
84
85
|
# create or update function
|
85
86
|
|
@@ -90,7 +91,7 @@ module LambdaWrap
|
|
90
91
|
func_version = func_config.version
|
91
92
|
raise 'Error while publishing existing lambda function ' + function_name if !func_config.version
|
92
93
|
rescue Aws::Lambda::Errors::ResourceNotFoundException
|
93
|
-
func_config = @client.create_function({function_name: function_name, runtime: 'nodejs', role: lambda_role, handler: handler, code: { s3_bucket: bucket, s3_key: key }, timeout: 5, memory_size: 128, publish: true, description:
|
94
|
+
func_config = @client.create_function({function_name: function_name, runtime: 'nodejs', role: lambda_role, handler: handler, code: { s3_bucket: bucket, s3_key: key }, timeout: 5, memory_size: 128, publish: true, description: lambda_description}).data
|
94
95
|
puts func_config
|
95
96
|
func_version = func_config.version
|
96
97
|
raise 'Error while publishing new lambda function ' + function_name if !func_config.version
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lambda_wrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Thurner
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -38,7 +38,7 @@ files:
|
|
38
38
|
- lib/lambda_wrap/dynamo_db_manager.rb
|
39
39
|
- lib/lambda_wrap/lambda_manager.rb
|
40
40
|
- lib/lambda_wrap/zip_file_generator.rb
|
41
|
-
homepage:
|
41
|
+
homepage: https://github.com/Cimpress-MCP/LambdaWrap
|
42
42
|
licenses:
|
43
43
|
- Apache-2.0
|
44
44
|
metadata: {}
|